#5A5CEF#5A5CEF
#5A5CEF is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.1% C 0.215 H 276.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5CEF |
|---|---|
| RGB | rgb(90, 92, 239) |
| HSL | hsl(239, 82%, 65%) |
| HSV | hsv(239, 62%, 94%) |
| CMYK | cmyk(62.3%, 61.5%, 0%, 6.3%) |
| CIE-LAB | lab(47.05, 42.58, -74.36) |
| CIE-LCH | lch(47.05, 85.68, 299.80°) |
| OKLab | oklab(56.09% 0.0237 -0.2142) |
| OKLCH | oklch(56.09% 0.215 276.3) |
| XYZ | xyz(23.6185, 16.0580, 83.4995) |
| Luminance | 0.1606 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.89
Dark Periwinkle
#665FD1
ΔE00 4.22
Slate Blue
#6A5ACD
ΔE00 5.19
Light Indigo
#6D5ACF
ΔE00 5.22
Electric Blue
#0652FF
ΔE00 5.52
Azul
#1D5DEC
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5CEF #EFED5A
analogous
#5AA6EF #5A5CEF #A35AEF
triadic
#5A5CEF #EF5A5C #5CEF5A
tetradic
#5A5CEF #EF5AA6 #EFED5A #5AEFA3
square
#5A5CEF #EF5AA6 #EFED5A #5AEFA3
split-complementary
#5A5CEF #EFA35A #A6EF5A
monochromatic
#1215BC #2225EA #5A5CEF #9293F4 #CACAFA
Accessibility & contrast
On white
4.99
#5A5CEF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#5A5CEF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5CEF
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5CEF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5CEF | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5a5cef; /* rgb */ color: rgb(90, 92, 239); /* oklch */ color: oklch(56.1% 0.215 276.3);
Tailwind
colors: {
custom: {
50: '#988af5',
500: '#5a5cef',
950: '#000000',
},
}SCSS
$custom: #5a5cef; $custom-light: #988af5; $custom-dark: #000000;
JSON
{
"hex": "#5a5cef",
"rgb": {
"r": 90,
"g": 92,
"b": 239
},
"hsl": {
"h": 239.195,
"s": 82.32,
"l": 64.51
},
"oklch": {
"l": 0.5609,
"c": 0.21548,
"h": 276.3
},
"luminance": 0.1606
}Semantic roles & 50–950 ramp
primary
#5A5CEF
secondary
#ECEBB9
accent
#DC07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85