#5C229E#5C229E
#5C229E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.185 H 299.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #5C229E |
|---|---|
| RGB | rgb(92, 34, 158) |
| HSL | hsl(268, 65%, 38%) |
| HSV | hsv(268, 78%, 62%) |
| CMYK | cmyk(41.8%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(29.13, 50.29, -56.39) |
| CIE-LCH | lch(29.13, 75.56, 311.73°) |
| OKLab | oklab(41.19% 0.0899 -0.1613) |
| OKLCH | oklch(41.19% 0.185 299.1) |
| XYZ | xyz(11.1556, 5.8878, 32.8898) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.16
Indigo Blue
#3A18B1
ΔE00 5.89
Violet Blue
#510AC9
ΔE00 6.30
Purple (survey)
#7E1E9C
ΔE00 6.53
Indigo
#4B0082
ΔE00 6.54
Purple Blue
#5D21D0
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C229E #649E22
analogous
#22269E #5C229E #9A229E
triadic
#5C229E #9E5C22 #229E5C
tetradic
#5C229E #9E2226 #649E22 #229E9A
square
#5C229E #9E2226 #649E22 #229E9A
split-complementary
#5C229E #9E9A22 #269E22
monochromatic
#210C39 #3F176C #5C229E #792DD0 #995EDC
Accessibility & contrast
On white
9.64
#5C229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5C229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C229E
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C229E | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4C445F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5c229e; /* rgb */ color: rgb(92, 34, 158); /* oklch */ color: oklch(41.2% 0.185 299.1);
Tailwind
colors: {
custom: {
50: '#9164bc',
500: '#5c229e',
950: '#000000',
},
}SCSS
$custom: #5c229e; $custom-light: #9164bc; $custom-dark: #000000;
JSON
{
"hex": "#5c229e",
"rgb": {
"r": 92,
"g": 34,
"b": 158
},
"hsl": {
"h": 268.065,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.41188,
"c": 0.18462,
"h": 299.1
},
"luminance": 0.05888
}Semantic roles & 50–950 ramp
primary
#5C229E
secondary
#91C15B
accent
#E84099
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81