#5A5ECC#5A5ECC
#5A5ECC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.8% C 0.167 H 277.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5ECC |
|---|---|
| RGB | rgb(90, 94, 204) |
| HSL | hsl(238, 53%, 58%) |
| HSV | hsv(238, 56%, 80%) |
| CMYK | cmyk(55.9%, 53.9%, 0%, 20%) |
| CIE-LAB | lab(44.99, 30.04, -57.81) |
| CIE-LCH | lch(44.99, 65.15, 297.45°) |
| OKLab | oklab(53.77% 0.0221 -0.1655) |
| OKLCH | oklch(53.77% 0.167 277.6) |
| XYZ | xyz(19.1148, 14.5374, 58.9138) |
| Luminance | 0.1454 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.26
Iris
#6258C4
ΔE00 2.92
Warm Blue
#4B57DB
ΔE00 3.27
Slate Blue
#6A5ACD
ΔE00 3.42
Light Indigo
#6D5ACF
ΔE00 3.94
Royal Blue
#4169E1
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5ECC #CCC85A
analogous
#5A97CC #5A5ECC #8F5ACC
triadic
#5A5ECC #CC5A5E #5ECC5A
tetradic
#5A5ECC #CC5A97 #CCC85A #5ACC8F
square
#5A5ECC #CC5A97 #CCC85A #5ACC8F
split-complementary
#5A5ECC #CC8F5A #97CC5A
monochromatic
#292C83 #373BB2 #5A5ECC #898CDA #B7B9E9
Accessibility & contrast
On white
5.37
#5A5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#5A5ECC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5ECC
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5ECC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5ECC | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#196FD0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#1C778C
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5a5ecc; /* rgb */ color: rgb(90, 94, 204); /* oklch */ color: oklch(53.8% 0.167 277.6);
Tailwind
colors: {
custom: {
50: '#928bdc',
500: '#5a5ecc',
950: '#000000',
},
}SCSS
$custom: #5a5ecc; $custom-light: #928bdc; $custom-dark: #000000;
JSON
{
"hex": "#5a5ecc",
"rgb": {
"r": 90,
"g": 94,
"b": 204
},
"hsl": {
"h": 237.895,
"s": 52.778,
"l": 57.647
},
"oklch": {
"l": 0.5377,
"c": 0.16697,
"h": 277.6
},
"luminance": 0.14539
}Semantic roles & 50–950 ramp
primary
#5A5ECC
secondary
#D8D6AA
accent
#D74CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83