#5A41D5#5A41D5
#5A41D5 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.214 H 283.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #5A41D5 |
|---|---|
| RGB | rgb(90, 65, 213) |
| HSL | hsl(250, 64%, 55%) |
| HSV | hsv(250, 69%, 84%) |
| CMYK | cmyk(57.7%, 69.5%, 0%, 16.5%) |
| CIE-LAB | lab(39.17, 49.94, -72.47) |
| CIE-LCH | lch(39.17, 88.01, 304.57°) |
| OKLab | oklab(49.72% 0.0484 -0.2087) |
| OKLCH | oklch(49.72% 0.214 283.1) |
| XYZ | xyz(18.1133, 10.7572, 64.0598) |
| Luminance | 0.1076 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.22
Blurple
#5539CC
ΔE00 2.45
Blue With A Hint Of Purple
#533CC6
ΔE00 2.66
Purpley Blue
#5F34E7
ΔE00 3.19
Purpleish Blue
#6140EF
ΔE00 3.49
Burple
#6832E3
ΔE00 3.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A41D5 #BCD541
analogous
#4172D5 #5A41D5 #A441D5
triadic
#5A41D5 #D55A41 #41D55A
tetradic
#5A41D5 #D54172 #BCD541 #41D5A4
square
#5A41D5 #D54172 #BCD541 #41D5A4
split-complementary
#5A41D5 #D5A441 #72D541
monochromatic
#2D1C7F #3F27B2 #5A41D5 #8673E0 #B1A5EB
Accessibility & contrast
On white
6.66
#5A41D5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#5A41D5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A41D5
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A41D5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A41D5 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D9
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#106886
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5a41d5; /* rgb */ color: rgb(90, 65, 213); /* oklch */ color: oklch(49.7% 0.214 283.1);
Tailwind
colors: {
custom: {
50: '#9578e3',
500: '#5a41d5',
950: '#000000',
},
}SCSS
$custom: #5a41d5; $custom-light: #9578e3; $custom-dark: #000000;
JSON
{
"hex": "#5a41d5",
"rgb": {
"r": 90,
"g": 65,
"b": 213
},
"hsl": {
"h": 250.135,
"s": 63.793,
"l": 54.51
},
"oklch": {
"l": 0.49721,
"c": 0.21421,
"h": 283.1
},
"luminance": 0.10758
}Semantic roles & 50–950 ramp
primary
#5A41D5
secondary
#CED89A
accent
#E741CB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84