#5A2CBD#5A2CBD
#5A2CBD is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.208 H 289.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2CBD |
|---|---|
| RGB | rgb(90, 44, 189) |
| HSL | hsl(259, 62%, 46%) |
| HSV | hsv(259, 77%, 74%) |
| CMYK | cmyk(52.4%, 76.7%, 0%, 25.9%) |
| CIE-LAB | lab(33.24, 53.69, -68.22) |
| CIE-LCH | lch(33.24, 86.81, 308.20°) |
| OKLab | oklab(44.87% 0.0701 -0.1961) |
| OKLCH | oklch(44.87% 0.208 289.7) |
| XYZ | xyz(14.2998, 7.6485, 48.8571) |
| Luminance | 0.0765 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.69
Blurple
#5539CC
ΔE00 3.63
Blue With A Hint Of Purple
#533CC6
ΔE00 3.93
Violet Blue
#510AC9
ΔE00 4.30
Bluey Purple
#6241C7
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2CBD #8FBD2C
analogous
#2C47BD #5A2CBD #A22CBD
triadic
#5A2CBD #BD5A2C #2CBD5A
tetradic
#5A2CBD #BD2C47 #8FBD2C #2CBDA2
square
#5A2CBD #BD2C47 #8FBD2C #2CBDA2
split-complementary
#5A2CBD #BDA22C #47BD2C
monochromatic
#2B155A #42208B #5A2CBD #7B50D6 #A082E2
Accessibility & contrast
On white
8.30
#5A2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#5A2CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2CBD
8.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2CBD | 1.00 | 8.30 | 2.53 | 8.30 |
| #FFFFFF | 8.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#355573
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #5a2cbd; /* rgb */ color: rgb(90, 44, 189); /* oklch */ color: oklch(44.9% 0.208 289.7);
Tailwind
colors: {
custom: {
50: '#936bd2',
500: '#5a2cbd',
950: '#000000',
},
}SCSS
$custom: #5a2cbd; $custom-light: #936bd2; $custom-dark: #000000;
JSON
{
"hex": "#5a2cbd",
"rgb": {
"r": 90,
"g": 44,
"b": 189
},
"hsl": {
"h": 259.034,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.44869,
"c": 0.20826,
"h": 289.7
},
"luminance": 0.07649
}Semantic roles & 50–950 ramp
primary
#5A2CBD
secondary
#B1CB7A
accent
#E542B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83