#5F2F79#5F2F79
#5F2F79 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.127 H 312.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2F79 |
|---|---|
| RGB | rgb(95, 47, 121) |
| HSL | hsl(279, 44%, 33%) |
| HSV | hsv(279, 61%, 47%) |
| CMYK | cmyk(21.5%, 61.2%, 0%, 52.5%) |
| CIE-LAB | lab(29.02, 35.40, -33.61) |
| CIE-LCH | lch(29.02, 48.81, 316.49°) |
| OKLab | oklab(40.32% 0.0849 -0.0943) |
| OKLCH | oklch(40.32% 0.127 312) |
| XYZ | xyz(9.1864, 5.8466, 18.7300) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.88
Darkish Purple
#751973
ΔE00 6.54
Purple (survey)
#7E1E9C
ΔE00 7.86
Purple
#800080
ΔE00 8.19
Darkslateblue
#483D8B
ΔE00 8.59
Grape
#6C3461
ΔE00 8.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2F79 #49792F
analogous
#3A2F79 #5F2F79 #792F6E
triadic
#5F2F79 #795F2F #2F795F
tetradic
#5F2F79 #793A2F #49792F #2F6E79
square
#5F2F79 #793A2F #49792F #2F6E79
split-complementary
#5F2F79 #6E792F #2F793A
monochromatic
#1A0D21 #3C1E4D #5F2F79 #8240A5 #A061C2
Accessibility & contrast
On white
9.68
#5F2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5F2F79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2F79
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2F79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2F79 | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#2A4577
Tritanopia (blue-blind)
#5C3C4F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f2f79; /* rgb */ color: rgb(95, 47, 121); /* oklch */ color: oklch(40.3% 0.127 312.0);
Tailwind
colors: {
custom: {
50: '#8f6aa0',
500: '#5f2f79',
950: '#000000',
},
}SCSS
$custom: #5f2f79; $custom-light: #8f6aa0; $custom-dark: #000000;
JSON
{
"hex": "#5f2f79",
"rgb": {
"r": 95,
"g": 47,
"b": 121
},
"hsl": {
"h": 278.919,
"s": 44.048,
"l": 32.941
},
"oklch": {
"l": 0.40322,
"c": 0.12693,
"h": 312
},
"luminance": 0.05846
}Semantic roles & 50–950 ramp
primary
#5F2F79
secondary
#76A85B
accent
#D45481
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D070F
muted
#7D7A7E