#5C229C#5C229C
#5C229C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.182 H 299.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #5C229C |
|---|---|
| RGB | rgb(92, 34, 156) |
| HSL | hsl(269, 64%, 37%) |
| HSV | hsv(269, 78%, 61%) |
| CMYK | cmyk(41%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(28.95, 49.79, -55.45) |
| CIE-LCH | lch(28.95, 74.53, 311.92°) |
| OKLab | oklab(41.01% 0.0904 -0.1585) |
| OKLCH | oklch(41.01% 0.183 299.7) |
| XYZ | xyz(10.9849, 5.8195, 31.9906) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.08
Indigo Blue
#3A18B1
ΔE00 6.09
Indigo
#4B0082
ΔE00 6.36
Purple (survey)
#7E1E9C
ΔE00 6.46
Violet Blue
#510AC9
ΔE00 6.59
Purple Blue
#5D21D0
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C229C #629C22
analogous
#22259C #5C229C #99229C
triadic
#5C229C #9C5C22 #229C5C
tetradic
#5C229C #9C2225 #629C22 #229C99
square
#5C229C #9C2225 #629C22 #229C99
split-complementary
#5C229C #9C9922 #259C22
monochromatic
#210C38 #3E176A #5C229C #7A2DCE #995DDC
Accessibility & contrast
On white
9.70
#5C229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5C229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C229C
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C229C | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4D435E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5c229c; /* rgb */ color: rgb(92, 34, 156); /* oklch */ color: oklch(41.0% 0.182 299.7);
Tailwind
colors: {
custom: {
50: '#9164ba',
500: '#5c229c',
950: '#000000',
},
}SCSS
$custom: #5c229c; $custom-light: #9164ba; $custom-dark: #000000;
JSON
{
"hex": "#5c229c",
"rgb": {
"r": 92,
"g": 34,
"b": 156
},
"hsl": {
"h": 268.525,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.41011,
"c": 0.1825,
"h": 299.7
},
"luminance": 0.0582
}Semantic roles & 50–950 ramp
primary
#5C229C
secondary
#8FC05A
accent
#E74198
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81