#5A3FDB#5A3FDB
#5A3FDB is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.223 H 282.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5A3FDB |
|---|---|
| RGB | rgb(90, 63, 219) |
| HSL | hsl(250, 68%, 55%) |
| HSV | hsv(250, 71%, 86%) |
| CMYK | cmyk(58.9%, 71.2%, 0%, 14.1%) |
| CIE-LAB | lab(39.31, 52.78, -75.68) |
| CIE-LCH | lch(39.31, 92.27, 304.90°) |
| OKLab | oklab(49.99% 0.0488 -0.2181) |
| OKLCH | oklch(49.99% 0.223 282.6) |
| XYZ | xyz(18.7762, 10.8419, 68.1074) |
| Luminance | 0.1084 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 2.45
Blurple
#5539CC
ΔE00 2.68
Bluey Purple
#6241C7
ΔE00 2.83
Purpleish Blue
#6140EF
ΔE00 2.86
Burple
#6832E3
ΔE00 3.07
Blue With A Hint Of Purple
#533CC6
ΔE00 3.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A3FDB #C0DB3F
analogous
#3F72DB #5A3FDB #A83FDB
triadic
#5A3FDB #DB5A3F #3FDB5A
tetradic
#5A3FDB #DB3F72 #C0DB3F #3FDBA8
square
#5A3FDB #DB3F72 #C0DB3F #3FDBA8
split-complementary
#5A3FDB #DBA83F #72DB3F
monochromatic
#2C1986 #3D23BA #5A3FDB #8673E5 #B3A6EE
Accessibility & contrast
On white
6.63
#5A3FDB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#5A3FDB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A3FDB
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A3FDB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A3FDB | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0057D8
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5a3fdb; /* rgb */ color: rgb(90, 63, 219); /* oklch */ color: oklch(50.0% 0.223 282.6);
Tailwind
colors: {
custom: {
50: '#9677e7',
500: '#5a3fdb',
950: '#000000',
},
}SCSS
$custom: #5a3fdb; $custom-light: #9677e7; $custom-dark: #000000;
JSON
{
"hex": "#5a3fdb",
"rgb": {
"r": 90,
"g": 63,
"b": 219
},
"hsl": {
"h": 250.385,
"s": 68.421,
"l": 55.294
},
"oklch": {
"l": 0.49985,
"c": 0.22346,
"h": 282.6
},
"luminance": 0.10843
}Semantic roles & 50–950 ramp
primary
#5A3FDB
secondary
#D0DC9A
accent
#EB3DCD
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84