#5B279F#5B279F
#5B279F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.180 H 297.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5B279F |
|---|---|
| RGB | rgb(91, 39, 159) |
| HSL | hsl(266, 61%, 39%) |
| HSV | hsv(266, 75%, 62%) |
| CMYK | cmyk(42.8%, 75.5%, 0%, 37.6%) |
| CIE-LAB | lab(29.86, 48.17, -55.81) |
| CIE-LCH | lch(29.86, 73.72, 310.80°) |
| OKLab | oklab(41.7% 0.0837 -0.1596) |
| OKLCH | oklch(41.7% 0.18 297.7) |
| XYZ | xyz(11.2963, 6.1782, 33.3915) |
| Luminance | 0.0618 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.65
Indigo Blue
#3A18B1
ΔE00 5.98
Violet Blue
#510AC9
ΔE00 6.43
Purple Blue
#5D21D0
ΔE00 6.67
Purple (survey)
#7E1E9C
ΔE00 6.79
Indigo
#4B0082
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B279F #6B9F27
analogous
#272F9F #5B279F #97279F
triadic
#5B279F #9F5B27 #279F5B
tetradic
#5B279F #9F272F #6B9F27 #279F97
square
#5B279F #9F272F #6B9F27 #279F97
split-complementary
#5B279F #9F9727 #2F9F27
monochromatic
#230F3D #3F1B6E #5B279F #7736CE #9967DA
Accessibility & contrast
On white
9.39
#5B279F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5B279F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B279F
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B279F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B279F | 1.00 | 9.39 | 2.24 | 9.39 |
| #FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4A4661
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5b279f; /* rgb */ color: rgb(91, 39, 159); /* oklch */ color: oklch(41.7% 0.180 297.7);
Tailwind
colors: {
custom: {
50: '#9067bc',
500: '#5b279f',
950: '#000000',
},
}SCSS
$custom: #5b279f; $custom-light: #9067bc; $custom-dark: #000000;
JSON
{
"hex": "#5b279f",
"rgb": {
"r": 91,
"g": 39,
"b": 159
},
"hsl": {
"h": 266,
"s": 60.606,
"l": 38.824
},
"oklch": {
"l": 0.41699,
"c": 0.18026,
"h": 297.7
},
"luminance": 0.06178
}Semantic roles & 50–950 ramp
primary
#5B279F
secondary
#97C062
accent
#E4449F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81