#5A2FB9#5A2FB9
#5A2FB9 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.201 H 290.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2FB9 |
|---|---|
| RGB | rgb(90, 47, 185) |
| HSL | hsl(259, 59%, 45%) |
| HSV | hsv(259, 75%, 73%) |
| CMYK | cmyk(51.4%, 74.6%, 0%, 27.5%) |
| CIE-LAB | lab(33.37, 51.18, -65.64) |
| CIE-LCH | lch(33.37, 83.24, 307.94°) |
| OKLab | oklab(44.85% 0.0688 -0.1886) |
| OKLCH | oklch(44.85% 0.201 290.1) |
| XYZ | xyz(13.9874, 7.7089, 46.6405) |
| Luminance | 0.0771 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.39
Blurple
#5539CC
ΔE00 3.62
Blue With A Hint Of Purple
#533CC6
ΔE00 3.72
Bluey Purple
#6241C7
ΔE00 4.76
Violet Blue
#510AC9
ΔE00 4.94
Ocean Blue
#4F42B5
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2FB9 #8EB92F
analogous
#2F49B9 #5A2FB9 #9F2FB9
triadic
#5A2FB9 #B95A2F #2FB95A
tetradic
#5A2FB9 #B92F49 #8EB92F #2FB99F
square
#5A2FB9 #B92F49 #8EB92F #2FB99F
split-complementary
#5A2FB9 #B99F2F #49B92F
monochromatic
#2B1657 #422388 #5A2FB9 #7A52D3 #A083DF
Accessibility & contrast
On white
8.26
#5A2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#5A2FB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2FB9
8.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2FB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2FB9 | 1.00 | 8.26 | 2.54 | 8.26 |
| #FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#385572
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #5a2fb9; /* rgb */ color: rgb(90, 47, 185); /* oklch */ color: oklch(44.8% 0.201 290.1);
Tailwind
colors: {
custom: {
50: '#926ccf',
500: '#5a2fb9',
950: '#000000',
},
}SCSS
$custom: #5a2fb9; $custom-light: #926ccf; $custom-dark: #000000;
JSON
{
"hex": "#5a2fb9",
"rgb": {
"r": 90,
"g": 47,
"b": 185
},
"hsl": {
"h": 258.696,
"s": 59.483,
"l": 45.49
},
"oklch": {
"l": 0.44848,
"c": 0.20076,
"h": 290.1
},
"luminance": 0.07709
}Semantic roles & 50–950 ramp
primary
#5A2FB9
secondary
#B1C97B
accent
#E345B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82