#5A219E#5A219E
#5A219E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.185 H 298.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5A219E |
|---|---|
| RGB | rgb(90, 33, 158) |
| HSL | hsl(267, 65%, 37%) |
| HSV | hsv(267, 79%, 62%) |
| CMYK | cmyk(43%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(28.72, 50.39, -57.06) |
| CIE-LCH | lch(28.72, 76.13, 311.44°) |
| OKLab | oklab(40.85% 0.0876 -0.1633) |
| OKLCH | oklch(40.85% 0.185 298.2) |
| XYZ | xyz(10.9303, 5.7298, 32.8712) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.51
Indigo Blue
#3A18B1
ΔE00 5.54
Violet Blue
#510AC9
ΔE00 6.13
Indigo
#4B0082
ΔE00 6.31
Purple Blue
#5D21D0
ΔE00 6.88
Purple (survey)
#7E1E9C
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A219E #659E21
analogous
#21279E #5A219E #99219E
triadic
#5A219E #9E5A21 #219E5A
tetradic
#5A219E #9E2127 #659E21 #219E99
square
#5A219E #9E2127 #659E21 #219E99
split-complementary
#5A219E #9E9921 #279E21
monochromatic
#200C39 #3D166B #5A219E #772CD1 #975CDD
Accessibility & contrast
On white
9.79
#5A219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5A219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A219E
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A219E | 1.00 | 9.79 | 2.15 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#49435F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5a219e; /* rgb */ color: rgb(90, 33, 158); /* oklch */ color: oklch(40.8% 0.185 298.2);
Tailwind
colors: {
custom: {
50: '#9063bc',
500: '#5a219e',
950: '#000000',
},
}SCSS
$custom: #5a219e; $custom-light: #9063bc; $custom-dark: #000000;
JSON
{
"hex": "#5a219e",
"rgb": {
"r": 90,
"g": 33,
"b": 158
},
"hsl": {
"h": 267.36,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.40846,
"c": 0.18535,
"h": 298.2
},
"luminance": 0.0573
}Semantic roles & 50–950 ramp
primary
#5A219E
secondary
#92C159
accent
#E83F9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81