#5F2799#5F2799
#5F2799 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.174 H 301.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2799 |
|---|---|
| RGB | rgb(95, 39, 153) |
| HSL | hsl(269, 59%, 38%) |
| HSV | hsv(269, 75%, 60%) |
| CMYK | cmyk(37.9%, 74.5%, 0%, 40%) |
| CIE-LAB | lab(29.87, 47.36, -52.11) |
| CIE-LCH | lch(29.87, 70.41, 312.27°) |
| OKLab | oklab(41.67% 0.0911 -0.1486) |
| OKLCH | oklch(41.67% 0.174 301.5) |
| XYZ | xyz(11.1932, 6.1838, 30.7347) |
| Luminance | 0.0618 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.91
Purple (survey)
#7E1E9C
ΔE00 5.85
Indigo
#4B0082
ΔE00 7.04
Indigo Blue
#3A18B1
ΔE00 7.17
Violet Blue
#510AC9
ΔE00 7.55
Purple Blue
#5D21D0
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2799 #619927
analogous
#272899 #5F2799 #982799
triadic
#5F2799 #995F27 #27995F
tetradic
#5F2799 #992728 #619927 #279998
square
#5F2799 #992728 #619927 #279998
split-complementary
#5F2799 #999827 #289927
monochromatic
#220E37 #411B68 #5F2799 #7D33CA #9C63D7
Accessibility & contrast
On white
9.39
#5F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5F2799 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2799
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2799 | 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)
#00469C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#52435E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5f2799; /* rgb */ color: rgb(95, 39, 153); /* oklch */ color: oklch(41.7% 0.174 301.5);
Tailwind
colors: {
custom: {
50: '#9267b8',
500: '#5f2799',
950: '#000000',
},
}SCSS
$custom: #5f2799; $custom-light: #9267b8; $custom-dark: #000000;
JSON
{
"hex": "#5f2799",
"rgb": {
"r": 95,
"g": 39,
"b": 153
},
"hsl": {
"h": 269.474,
"s": 59.375,
"l": 37.647
},
"oklch": {
"l": 0.41666,
"c": 0.1743,
"h": 301.5
},
"luminance": 0.06184
}Semantic roles & 50–950 ramp
primary
#5F2799
secondary
#8FBD5F
accent
#E34595
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80