#5A2CB6#5A2CB6
#5A2CB6 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.200 H 291.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2CB6 |
|---|---|
| RGB | rgb(90, 44, 182) |
| HSL | hsl(260, 61%, 44%) |
| HSV | hsv(260, 76%, 71%) |
| CMYK | cmyk(50.5%, 75.8%, 0%, 28.6%) |
| CIE-LAB | lab(32.59, 51.79, -65.14) |
| CIE-LCH | lch(32.59, 83.22, 308.49°) |
| OKLab | oklab(44.22% 0.072 -0.1871) |
| OKLCH | oklch(44.22% 0.2 291.1) |
| XYZ | xyz(13.5582, 7.3519, 44.9516) |
| Luminance | 0.0735 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.52
Blurple
#5539CC
ΔE00 4.35
Blue With A Hint Of Purple
#533CC6
ΔE00 4.46
Violet Blue
#510AC9
ΔE00 4.60
Bluey Purple
#6241C7
ΔE00 5.49
Indigo Blue
#3A18B1
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2CB6 #88B62C
analogous
#2C43B6 #5A2CB6 #9F2CB6
triadic
#5A2CB6 #B65A2C #2CB65A
tetradic
#5A2CB6 #B62C43 #88B62C #2CB69F
square
#5A2CB6 #B62C43 #88B62C #2CB69F
split-complementary
#5A2CB6 #B69F2C #43B62C
monochromatic
#291453 #422085 #5A2CB6 #794CD4 #9E7DE0
Accessibility & contrast
On white
8.50
#5A2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#5A2CB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2CB6
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2CB6 | 1.00 | 8.50 | 2.47 | 8.50 |
| #FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3A526F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #5a2cb6; /* rgb */ color: rgb(90, 44, 182); /* oklch */ color: oklch(44.2% 0.200 291.1);
Tailwind
colors: {
custom: {
50: '#926acd',
500: '#5a2cb6',
950: '#000000',
},
}SCSS
$custom: #5a2cb6; $custom-light: #926acd; $custom-dark: #000000;
JSON
{
"hex": "#5a2cb6",
"rgb": {
"r": 90,
"g": 44,
"b": 182
},
"hsl": {
"h": 260,
"s": 61.062,
"l": 44.314
},
"oklch": {
"l": 0.44221,
"c": 0.20046,
"h": 291.1
},
"luminance": 0.07352
}Semantic roles & 50–950 ramp
primary
#5A2CB6
secondary
#ADC876
accent
#E444AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82