#5A4FD5#5A4FD5
#5A4FD5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.198 H 280.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4FD5 |
|---|---|
| RGB | rgb(90, 79, 213) |
| HSL | hsl(245, 61%, 57%) |
| HSV | hsv(245, 63%, 84%) |
| CMYK | cmyk(57.7%, 62.9%, 0%, 16.5%) |
| CIE-LAB | lab(42.11, 42.00, -67.67) |
| CIE-LCH | lch(42.11, 79.64, 301.82°) |
| OKLab | oklab(51.84% 0.0366 -0.1946) |
| OKLCH | oklch(51.84% 0.198 280.6) |
| XYZ | xyz(19.0189, 12.5684, 64.3616) |
| Luminance | 0.1257 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.48
Iris
#6258C4
ΔE00 3.65
Slate Blue
#6A5ACD
ΔE00 4.04
Light Indigo
#6D5ACF
ΔE00 4.31
Bluey Purple
#6241C7
ΔE00 4.56
Purpleish Blue
#6140EF
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4FD5 #CAD54F
analogous
#4F87D5 #5A4FD5 #9D4FD5
triadic
#5A4FD5 #D55A4F #4FD55A
tetradic
#5A4FD5 #D54F87 #CAD54F #4FD59D
square
#5A4FD5 #D54F87 #CAD54F #4FD59D
split-complementary
#5A4FD5 #D59D4F #87D54F
monochromatic
#292189 #382CBA #5A4FD5 #8880E1 #B7B2ED
Accessibility & contrast
On white
5.98
#5A4FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#5A4FD5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A4FD5
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4FD5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4FD5 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#0B708B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5a4fd5; /* rgb */ color: rgb(90, 79, 213); /* oklch */ color: oklch(51.8% 0.198 280.6);
Tailwind
colors: {
custom: {
50: '#9481e3',
500: '#5a4fd5',
950: '#000000',
},
}SCSS
$custom: #5a4fd5; $custom-light: #9481e3; $custom-dark: #000000;
JSON
{
"hex": "#5a4fd5",
"rgb": {
"r": 90,
"g": 79,
"b": 213
},
"hsl": {
"h": 244.925,
"s": 61.468,
"l": 57.255
},
"oklch": {
"l": 0.51842,
"c": 0.19799,
"h": 280.6
},
"luminance": 0.1257
}Semantic roles & 50–950 ramp
primary
#5A4FD5
secondary
#D7DBA5
accent
#E543D7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84