#5A239F#5A239F
#5A239F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.184 H 297.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5A239F |
|---|---|
| RGB | rgb(90, 35, 159) |
| HSL | hsl(267, 64%, 38%) |
| HSV | hsv(267, 78%, 62%) |
| CMYK | cmyk(43.4%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(29.10, 49.79, -57.04) |
| CIE-LCH | lch(29.10, 75.72, 311.12°) |
| OKLab | oklab(41.14% 0.0857 -0.1633) |
| OKLCH | oklch(41.14% 0.184 297.7) |
| XYZ | xyz(11.0739, 5.8787, 33.3454) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.29
Indigo Blue
#3A18B1
ΔE00 5.55
Violet Blue
#510AC9
ΔE00 6.09
Indigo
#4B0082
ΔE00 6.65
Purple Blue
#5D21D0
ΔE00 6.69
Purple (survey)
#7E1E9C
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A239F #689F23
analogous
#232A9F #5A239F #98239F
triadic
#5A239F #9F5A23 #239F5A
tetradic
#5A239F #9F232A #689F23 #239F98
square
#5A239F #9F232A #689F23 #239F98
split-complementary
#5A239F #9F9823 #2A9F23
monochromatic
#210D3B #3E186D #5A239F #762ED1 #9760DC
Accessibility & contrast
On white
9.65
#5A239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5A239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A239F
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A239F | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#484560
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a239f; /* rgb */ color: rgb(90, 35, 159); /* oklch */ color: oklch(41.1% 0.184 297.7);
Tailwind
colors: {
custom: {
50: '#9064bc',
500: '#5a239f',
950: '#000000',
},
}SCSS
$custom: #5a239f; $custom-light: #9064bc; $custom-dark: #000000;
JSON
{
"hex": "#5a239f",
"rgb": {
"r": 90,
"g": 35,
"b": 159
},
"hsl": {
"h": 266.613,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.41142,
"c": 0.18441,
"h": 297.7
},
"luminance": 0.05879
}Semantic roles & 50–950 ramp
primary
#5A239F
secondary
#95C15D
accent
#E7419D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81