#5C239F#5C239F
#5C239F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 298.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5C239F |
|---|---|
| RGB | rgb(92, 35, 159) |
| HSL | hsl(268, 64%, 38%) |
| HSV | hsv(268, 78%, 62%) |
| CMYK | cmyk(42.1%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(29.36, 50.12, -56.61) |
| CIE-LCH | lch(29.36, 75.61, 311.52°) |
| OKLab | oklab(41.38% 0.0887 -0.1619) |
| OKLCH | oklch(41.38% 0.185 298.7) |
| XYZ | xyz(11.2711, 5.9804, 33.3547) |
| Luminance | 0.0598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.07
Indigo Blue
#3A18B1
ΔE00 5.86
Violet Blue
#510AC9
ΔE00 6.21
Purple (survey)
#7E1E9C
ΔE00 6.57
Purple Blue
#5D21D0
ΔE00 6.71
Indigo
#4B0082
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C239F #669F23
analogous
#23289F #5C239F #9A239F
triadic
#5C239F #9F5C23 #239F5C
tetradic
#5C239F #9F2328 #669F23 #239F9A
square
#5C239F #9F2328 #669F23 #239F9A
split-complementary
#5C239F #9F9A23 #289F23
monochromatic
#220D3B #3F186D #5C239F #792ED1 #9960DC
Accessibility & contrast
On white
9.56
#5C239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5C239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C239F
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C239F | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4B4460
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5c239f; /* rgb */ color: rgb(92, 35, 159); /* oklch */ color: oklch(41.4% 0.185 298.7);
Tailwind
colors: {
custom: {
50: '#9165bc',
500: '#5c239f',
950: '#000000',
},
}SCSS
$custom: #5c239f; $custom-light: #9165bc; $custom-dark: #000000;
JSON
{
"hex": "#5c239f",
"rgb": {
"r": 92,
"g": 35,
"b": 159
},
"hsl": {
"h": 267.581,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.4138,
"c": 0.18466,
"h": 298.7
},
"luminance": 0.05981
}Semantic roles & 50–950 ramp
primary
#5C239F
secondary
#93C15D
accent
#E7419B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81