#5A5DC7#5A5DC7
#5A5DC7 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.2% C 0.161 H 278.2°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5DC7 |
|---|---|
| RGB | rgb(90, 93, 199) |
| HSL | hsl(238, 49%, 57%) |
| HSV | hsv(238, 55%, 78%) |
| CMYK | cmyk(54.8%, 53.3%, 0%, 22%) |
| CIE-LAB | lab(44.41, 29.04, -55.87) |
| CIE-LCH | lch(44.41, 62.97, 297.46°) |
| OKLab | oklab(53.23% 0.023 -0.1598) |
| OKLCH | oklch(53.23% 0.161 278.2) |
| XYZ | xyz(18.4363, 14.1247, 55.7766) |
| Luminance | 0.1413 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.48
Dark Periwinkle
#665FD1
ΔE00 2.62
Slate Blue
#6A5ACD
ΔE00 3.41
Warm Blue
#4B57DB
ΔE00 3.59
Light Indigo
#6D5ACF
ΔE00 3.98
Royal Blue
#4169E1
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5DC7 #C7C45A
analogous
#5A94C7 #5A5DC7 #8E5AC7
triadic
#5A5DC7 #C75A5D #5DC75A
tetradic
#5A5DC7 #C75A94 #C7C45A #5AC78E
square
#5A5DC7 #C75A94 #C7C45A #5AC78E
split-complementary
#5A5DC7 #C78E5A #94C75A
monochromatic
#2A2C7C #3A3DAA #5A5DC7 #888AD7 #B5B7E6
Accessibility & contrast
On white
5.49
#5A5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#5A5DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5DC7
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5DC7 | 1.00 | 5.49 | 3.83 | 5.49 |
| #FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F6ECB
Deuteranopia (green-blind)
#0565C5
Tritanopia (blue-blind)
#247589
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5a5dc7; /* rgb */ color: rgb(90, 93, 199); /* oklch */ color: oklch(53.2% 0.161 278.2);
Tailwind
colors: {
custom: {
50: '#918bd9',
500: '#5a5dc7',
950: '#000000',
},
}SCSS
$custom: #5a5dc7; $custom-light: #918bd9; $custom-dark: #000000;
JSON
{
"hex": "#5a5dc7",
"rgb": {
"r": 90,
"g": 93,
"b": 199
},
"hsl": {
"h": 238.349,
"s": 49.321,
"l": 56.667
},
"oklch": {
"l": 0.53227,
"c": 0.16144,
"h": 278.2
},
"luminance": 0.14126
}Semantic roles & 50–950 ramp
primary
#5A5DC7
secondary
#D5D3A8
accent
#D54FD9
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0C15
muted
#7E7D83