#5A3FD9#5A3FD9
#5A3FD9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.221 H 282.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #5A3FD9 |
|---|---|
| RGB | rgb(90, 63, 217) |
| HSL | hsl(251, 67%, 55%) |
| HSV | hsv(251, 71%, 85%) |
| CMYK | cmyk(58.5%, 71%, 0%, 14.9%) |
| CIE-LAB | lab(39.13, 52.19, -74.82) |
| CIE-LCH | lch(39.13, 91.23, 304.90°) |
| OKLab | oklab(49.8% 0.0492 -0.2156) |
| OKLCH | oklch(49.8% 0.221 282.9) |
| XYZ | xyz(18.5145, 10.7372, 66.7291) |
| Luminance | 0.1074 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blurple
#5539CC
ΔE00 2.47
Purpley Blue
#5F34E7
ΔE00 2.58
Bluey Purple
#6241C7
ΔE00 2.61
Blue With A Hint Of Purple
#533CC6
ΔE00 2.91
Purpleish Blue
#6140EF
ΔE00 3.10
Burple
#6832E3
ΔE00 3.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A3FD9 #BED93F
analogous
#3F71D9 #5A3FD9 #A73FD9
triadic
#5A3FD9 #D95A3F #3FD95A
tetradic
#5A3FD9 #D93F71 #BED93F #3FD9A7
square
#5A3FD9 #D93F71 #BED93F #3FD9A7
split-complementary
#5A3FD9 #D9A73F #71D93F
monochromatic
#2D1A84 #3E24B7 #5A3FD9 #8672E3 #B2A5ED
Accessibility & contrast
On white
6.67
#5A3FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#5A3FD9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A3FD9
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A3FD9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A3FD9 | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#026988
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5a3fd9; /* rgb */ color: rgb(90, 63, 217); /* oklch */ color: oklch(49.8% 0.221 282.9);
Tailwind
colors: {
custom: {
50: '#9677e6',
500: '#5a3fd9',
950: '#000000',
},
}SCSS
$custom: #5a3fd9; $custom-light: #9677e6; $custom-dark: #000000;
JSON
{
"hex": "#5a3fd9",
"rgb": {
"r": 90,
"g": 63,
"b": 217
},
"hsl": {
"h": 250.519,
"s": 66.957,
"l": 54.902
},
"oklch": {
"l": 0.49804,
"c": 0.22111,
"h": 282.9
},
"luminance": 0.10738
}Semantic roles & 50–950 ramp
primary
#5A3FD9
secondary
#CFDA9A
accent
#EA3ECC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84