#5A3CBD#5A3CBD
#5A3CBD is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.191 H 287.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).
Color values
| HEX | #5A3CBD |
|---|---|
| RGB | rgb(90, 60, 189) |
| HSL | hsl(254, 52%, 49%) |
| HSV | hsv(254, 68%, 74%) |
| CMYK | cmyk(52.4%, 68.3%, 0%, 25.9%) |
| CIE-LAB | lab(36.14, 45.57, -63.48) |
| CIE-LCH | lch(36.14, 78.14, 305.67°) |
| OKLab | oklab(46.92% 0.0567 -0.1823) |
| OKLCH | oklch(46.92% 0.191 287.3) |
| XYZ | xyz(15.0149, 9.0788, 49.0955) |
| Luminance | 0.0908 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.64
Blurple
#5539CC
ΔE00 2.19
Bluey Purple
#6241C7
ΔE00 2.25
Ocean Blue
#4F42B5
ΔE00 2.76
Purple Blue
#5D21D0
ΔE00 5.16
Burple
#6832E3
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A3CBD #9FBD3C
analogous
#3C5FBD #5A3CBD #9B3CBD
triadic
#5A3CBD #BD5A3C #3CBD5A
tetradic
#5A3CBD #BD3C5F #9FBD3C #3CBD9B
square
#5A3CBD #BD3C5F #9FBD3C #3CBD9B
split-complementary
#5A3CBD #BD9B3C #5FBD3C
monochromatic
#2E1F60 #442D8F #5A3CBD #7F67CF #A696DE
Accessibility & contrast
On white
7.46
#5A3CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#5A3CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A3CBD
7.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A3CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A3CBD | 1.00 | 7.46 | 2.82 | 7.46 |
| #FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#345D78
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #5a3cbd; /* rgb */ color: rgb(90, 60, 189); /* oklch */ color: oklch(46.9% 0.191 287.3);
Tailwind
colors: {
custom: {
50: '#9274d2',
500: '#5a3cbd',
950: '#000000',
},
}SCSS
$custom: #5a3cbd; $custom-light: #9274d2; $custom-dark: #000000;
JSON
{
"hex": "#5a3cbd",
"rgb": {
"r": 90,
"g": 60,
"b": 189
},
"hsl": {
"h": 253.953,
"s": 51.807,
"l": 48.824
},
"oklch": {
"l": 0.46921,
"c": 0.19091,
"h": 287.3
},
"luminance": 0.09079
}Semantic roles & 50–950 ramp
primary
#5A3CBD
secondary
#BBC98C
accent
#DB4DBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83