#5A209E#5A209E
#5A209E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.186 H 298.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5A209E |
|---|---|
| RGB | rgb(90, 32, 158) |
| HSL | hsl(268, 66%, 37%) |
| HSV | hsv(268, 80%, 62%) |
| CMYK | cmyk(43%, 79.7%, 0%, 38%) |
| CIE-LAB | lab(28.58, 50.80, -57.30) |
| CIE-LCH | lch(28.58, 76.57, 311.56°) |
| OKLab | oklab(40.75% 0.0885 -0.164) |
| OKLCH | oklch(40.75% 0.186 298.3) |
| XYZ | xyz(10.9029, 5.6751, 32.8621) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.64
Indigo Blue
#3A18B1
ΔE00 5.50
Violet Blue
#510AC9
ΔE00 6.09
Indigo
#4B0082
ΔE00 6.19
Purple (survey)
#7E1E9C
ΔE00 6.90
Purple Blue
#5D21D0
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A209E #649E20
analogous
#20259E #5A209E #99209E
triadic
#5A209E #9E5A20 #209E5A
tetradic
#5A209E #9E2025 #649E20 #209E99
square
#5A209E #9E2025 #649E20 #209E99
split-complementary
#5A209E #9E9920 #259E20
monochromatic
#200B38 #3D166B #5A209E #772AD1 #975BDE
Accessibility & contrast
On white
9.84
#5A209E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5A209E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A209E
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A209E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A209E | 1.00 | 9.84 | 2.14 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#49435F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5a209e; /* rgb */ color: rgb(90, 32, 158); /* oklch */ color: oklch(40.7% 0.186 298.3);
Tailwind
colors: {
custom: {
50: '#9063bc',
500: '#5a209e',
950: '#000000',
},
}SCSS
$custom: #5a209e; $custom-light: #9063bc; $custom-dark: #000000;
JSON
{
"hex": "#5a209e",
"rgb": {
"r": 90,
"g": 32,
"b": 158
},
"hsl": {
"h": 267.619,
"s": 66.316,
"l": 37.255
},
"oklch": {
"l": 0.40747,
"c": 0.18633,
"h": 298.3
},
"luminance": 0.05675
}Semantic roles & 50–950 ramp
primary
#5A209E
secondary
#91C258
accent
#E93F9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81