#5C229B#5C229B
#5C229B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.181 H 300.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5C229B |
|---|---|
| RGB | rgb(92, 34, 155) |
| HSL | hsl(269, 64%, 37%) |
| HSV | hsv(269, 78%, 61%) |
| CMYK | cmyk(40.6%, 78.1%, 0%, 39.2%) |
| CIE-LAB | lab(28.87, 49.54, -54.99) |
| CIE-LCH | lch(28.87, 74.01, 312.02°) |
| OKLab | oklab(40.92% 0.0907 -0.1572) |
| OKLCH | oklch(40.92% 0.181 300) |
| XYZ | xyz(10.9006, 5.7858, 31.5465) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.05
Indigo Blue
#3A18B1
ΔE00 6.19
Indigo
#4B0082
ΔE00 6.28
Purple (survey)
#7E1E9C
ΔE00 6.43
Violet Blue
#510AC9
ΔE00 6.74
Purple Blue
#5D21D0
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C229B #619B22
analogous
#22259B #5C229B #98229B
triadic
#5C229B #9B5C22 #229B5C
tetradic
#5C229B #9B2225 #619B22 #229B98
square
#5C229B #9B2225 #619B22 #229B98
split-complementary
#5C229B #9B9822 #259B22
monochromatic
#200C37 #3E1769 #5C229B #7A2DCD #995CDB
Accessibility & contrast
On white
9.73
#5C229B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5C229B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C229B
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C229B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C229B | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4D425E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5c229b; /* rgb */ color: rgb(92, 34, 155); /* oklch */ color: oklch(40.9% 0.181 300.0);
Tailwind
colors: {
custom: {
50: '#9064b9',
500: '#5c229b',
950: '#000000',
},
}SCSS
$custom: #5c229b; $custom-light: #9064b9; $custom-dark: #000000;
JSON
{
"hex": "#5c229b",
"rgb": {
"r": 92,
"g": 34,
"b": 155
},
"hsl": {
"h": 268.76,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.40924,
"c": 0.18144,
"h": 300
},
"luminance": 0.05786
}Semantic roles & 50–950 ramp
primary
#5C229B
secondary
#8FC059
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81