#5D3CAC#5D3CAC
#5D3CAC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.170 H 291.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5D3CAC |
|---|---|
| RGB | rgb(93, 60, 172) |
| HSL | hsl(258, 48%, 45%) |
| HSV | hsv(258, 65%, 67%) |
| CMYK | cmyk(45.9%, 65.1%, 0%, 32.5%) |
| CIE-LAB | lab(35.08, 41.20, -55.12) |
| CIE-LCH | lch(35.08, 68.81, 306.77°) |
| OKLab | oklab(45.81% 0.0632 -0.1576) |
| OKLCH | oklch(45.81% 0.17 291.9) |
| XYZ | xyz(13.5744, 8.5370, 39.9543) |
| Luminance | 0.0854 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.50
Blue With A Hint Of Purple
#533CC6
ΔE00 4.19
Bluey Purple
#6241C7
ΔE00 4.20
Rebeccapurple
#663399
ΔE00 4.55
Blurple
#5539CC
ΔE00 4.78
Blueberry
#464196
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D3CAC #8BAC3C
analogous
#3C53AC #5D3CAC #953CAC
triadic
#5D3CAC #AC5D3C #3CAC5D
tetradic
#5D3CAC #AC3C53 #8BAC3C #3CAC95
square
#5D3CAC #AC3C53 #8BAC3C #3CAC95
split-complementary
#5D3CAC #AC953C #53AC3C
monochromatic
#2C1C51 #442C7F #5D3CAC #7D5EC7 #A28CD7
Accessibility & contrast
On white
7.76
#5D3CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#5D3CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D3CAC
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D3CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D3CAC | 1.00 | 7.76 | 2.71 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#45576E
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #5d3cac; /* rgb */ color: rgb(93, 60, 172); /* oklch */ color: oklch(45.8% 0.170 291.9);
Tailwind
colors: {
custom: {
50: '#9174c6',
500: '#5d3cac',
950: '#000000',
},
}SCSS
$custom: #5d3cac; $custom-light: #9174c6; $custom-dark: #000000;
JSON
{
"hex": "#5d3cac",
"rgb": {
"r": 93,
"g": 60,
"b": 172
},
"hsl": {
"h": 257.679,
"s": 48.276,
"l": 45.49
},
"oklch": {
"l": 0.45806,
"c": 0.16985,
"h": 291.9
},
"luminance": 0.08537
}Semantic roles & 50–950 ramp
primary
#5D3CAC
secondary
#AFC182
accent
#D850B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82