#5C2799#5C2799
#5C2799 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.174 H 299.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5C2799 |
|---|---|
| RGB | rgb(92, 39, 153) |
| HSL | hsl(268, 59%, 38%) |
| HSV | hsv(268, 75%, 60%) |
| CMYK | cmyk(39.9%, 74.5%, 0%, 40%) |
| CIE-LAB | lab(29.48, 46.80, -52.76) |
| CIE-LCH | lch(29.48, 70.53, 311.57°) |
| OKLab | oklab(41.3% 0.0866 -0.1507) |
| OKLCH | oklch(41.3% 0.174 299.9) |
| XYZ | xyz(10.8875, 6.0261, 30.7204) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.24
Purple (survey)
#7E1E9C
ΔE00 6.40
Indigo Blue
#3A18B1
ΔE00 6.72
Indigo
#4B0082
ΔE00 6.84
Violet Blue
#510AC9
ΔE00 7.34
Purple Blue
#5D21D0
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C2799 #649927
analogous
#272B99 #5C2799 #952799
triadic
#5C2799 #995C27 #27995C
tetradic
#5C2799 #99272B #649927 #279995
square
#5C2799 #99272B #649927 #279995
split-complementary
#5C2799 #999527 #2B9927
monochromatic
#210E37 #3F1B68 #5C2799 #7933CA #9963D7
Accessibility & contrast
On white
9.52
#5C2799 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5C2799 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C2799
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C2799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C2799 | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#4E445E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5c2799; /* rgb */ color: rgb(92, 39, 153); /* oklch */ color: oklch(41.3% 0.174 299.9);
Tailwind
colors: {
custom: {
50: '#9066b8',
500: '#5c2799',
950: '#000000',
},
}SCSS
$custom: #5c2799; $custom-light: #9066b8; $custom-dark: #000000;
JSON
{
"hex": "#5c2799",
"rgb": {
"r": 92,
"g": 39,
"b": 153
},
"hsl": {
"h": 267.895,
"s": 59.375,
"l": 37.647
},
"oklch": {
"l": 0.41302,
"c": 0.17379,
"h": 299.9
},
"luminance": 0.06026
}Semantic roles & 50–950 ramp
primary
#5C2799
secondary
#91BD5F
accent
#E34599
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80