#5B2E8D color
The hex color #5B2E8D is a dark, moderate violet.
In the RGB color model it is made of 35.7% red, 18% green and 55.3% blue (91, 46, 141).
Its hue angle is 268°, with 51% saturation and 37% lightness. For print, the CMYK equivalent is 35% cyan, 67% magenta, 0% yellow and 45% black.
The closest named color is Night Fever (#572E89), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.46:1).
#5B2E8D color codes
| HEX | #5B2E8D | |
|---|---|---|
| RGB | rgb(91, 46, 141) | |
| RGB percent | rgb(35.7%, 18%, 55.3%) | |
| HSL | hsl(268, 51%, 37%) | |
| HSV / HSB | hsv(268, 67%, 55%) | |
| CMYK | cmyk(35%, 67%, 0%, 45%) | |
| CIE LAB | lab(29.67, 39.97, -45.09) | |
| CIE LCH | lch(29.67, 60.26, 311.56) | |
| CIE XYZ | xyz(10.098, 6.101, 25.84) | |
| Decimal | 5975693 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5B2E8D, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #5B2E8D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.22:1 | Fail | Fail | Fail |
| Sample text | 9.46:1 | Pass | Pass | Pass |
| #5B2E8D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.46:1 | Pass | Pass | Pass |
| Sample text | 2.22:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #5B2E8D looks to people with the most common types of color vision deficiency.
#004590Protanopia
no red cones#04458bDeuteranopia
no green cones#514359Tritanopia
no blue cones#464646Achromatopsia
no color vision
CSS examples
.background { background-color: #5b2e8d; }
.text { color: #5b2e8d; }
.border { border: 2px solid #5b2e8d; }
.transparent { background-color: rgb(91 46 141 / 50%); }
.gradient { background: linear-gradient(to right, #5b2e8d, #8b2e8d); }
Similar colors
#572e89Night Fever#5c2e88Purple Patch#632f92Lucid Dreams#663399Rebecca Purple#573894Ruthless Empress#5b1e8bIntergalactic Settlement#583580Kingfisher Daisy#69359cPurple Heart
Questions
- What color is #5B2E8D?
- #5B2E8D is a dark, moderate violet, closest to the named color Night Fever. It belongs to the purple family of colors.
- What is the RGB value of #5B2E8D?
- The RGB value is 91, 46, 141: 91 red, 46 green and 141 blue on a 0 to 255 scale.
- What is the complementary color of #5B2E8D?
- The complementary color is #608D2E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5B2E8D?
- White text. Black text has a contrast ratio of 2.22:1 and white text 9.46:1. WCAG asks for at least 4.5:1 for normal text.