#5A239E#5A239E
#5A239E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.183 H 298.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5A239E |
|---|---|
| RGB | rgb(90, 35, 158) |
| HSL | hsl(267, 64%, 38%) |
| HSV | hsv(267, 78%, 62%) |
| CMYK | cmyk(43%, 77.8%, 0%, 38%) |
| CIE-LAB | lab(29.02, 49.53, -56.58) |
| CIE-LCH | lch(29.02, 75.20, 311.20°) |
| OKLab | oklab(41.05% 0.086 -0.1619) |
| OKLCH | oklch(41.05% 0.183 298) |
| XYZ | xyz(10.9874, 5.8442, 32.8903) |
| Luminance | 0.0584 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.24
Indigo Blue
#3A18B1
ΔE00 5.64
Violet Blue
#510AC9
ΔE00 6.23
Indigo
#4B0082
ΔE00 6.56
Purple Blue
#5D21D0
ΔE00 6.84
Purple (survey)
#7E1E9C
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A239E #679E23
analogous
#232A9E #5A239E #97239E
triadic
#5A239E #9E5A23 #239E5A
tetradic
#5A239E #9E232A #679E23 #239E97
square
#5A239E #9E232A #679E23 #239E97
split-complementary
#5A239E #9E9723 #2A9E23
monochromatic
#210D3A #3D186C #5A239E #772ED0 #9760DC
Accessibility & contrast
On white
9.68
#5A239E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5A239E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A239E
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A239E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A239E | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#494460
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5a239e; /* rgb */ color: rgb(90, 35, 158); /* oklch */ color: oklch(41.1% 0.183 298.0);
Tailwind
colors: {
custom: {
50: '#8f64bc',
500: '#5a239e',
950: '#000000',
},
}SCSS
$custom: #5a239e; $custom-light: #8f64bc; $custom-dark: #000000;
JSON
{
"hex": "#5a239e",
"rgb": {
"r": 90,
"g": 35,
"b": 158
},
"hsl": {
"h": 266.829,
"s": 63.731,
"l": 37.843
},
"oklch": {
"l": 0.41053,
"c": 0.18334,
"h": 298
},
"luminance": 0.05844
}Semantic roles & 50–950 ramp
primary
#5A239E
secondary
#94C15C
accent
#E7419D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81