#5B279E#5B279E
#5B279E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.179 H 297.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #5B279E |
|---|---|
| RGB | rgb(91, 39, 158) |
| HSL | hsl(266, 60%, 39%) |
| HSV | hsv(266, 75%, 62%) |
| CMYK | cmyk(42.4%, 75.3%, 0%, 38%) |
| CIE-LAB | lab(29.77, 47.91, -55.34) |
| CIE-LCH | lch(29.77, 73.20, 310.88°) |
| OKLab | oklab(41.61% 0.084 -0.1583) |
| OKLCH | oklch(41.61% 0.179 297.9) |
| XYZ | xyz(11.2099, 6.1436, 32.9364) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.59
Indigo Blue
#3A18B1
ΔE00 6.07
Violet Blue
#510AC9
ΔE00 6.56
Purple (survey)
#7E1E9C
ΔE00 6.75
Purple Blue
#5D21D0
ΔE00 6.82
Indigo
#4B0082
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B279E #6A9E27
analogous
#272F9E #5B279E #96279E
triadic
#5B279E #9E5B27 #279E5B
tetradic
#5B279E #9E272F #6A9E27 #279E96
square
#5B279E #9E272F #6A9E27 #279E96
split-complementary
#5B279E #9E9627 #2F9E27
monochromatic
#220F3C #3F1B6D #5B279E #7835CD #9866D9
Accessibility & contrast
On white
9.42
#5B279E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#5B279E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B279E
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B279E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B279E | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#4A4661
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5b279e; /* rgb */ color: rgb(91, 39, 158); /* oklch */ color: oklch(41.6% 0.179 297.9);
Tailwind
colors: {
custom: {
50: '#9067bc',
500: '#5b279e',
950: '#000000',
},
}SCSS
$custom: #5b279e; $custom-light: #9067bc; $custom-dark: #000000;
JSON
{
"hex": "#5b279e",
"rgb": {
"r": 91,
"g": 39,
"b": 158
},
"hsl": {
"h": 266.218,
"s": 60.406,
"l": 38.627
},
"oklch": {
"l": 0.41612,
"c": 0.17916,
"h": 297.9
},
"luminance": 0.06144
}Semantic roles & 50–950 ramp
primary
#5B279E
secondary
#96BF62
accent
#E4449E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81