#5A5FEF#5A5FEF
#5A5FEF is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.6% C 0.212 H 275.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FEF |
|---|---|
| RGB | rgb(90, 95, 239) |
| HSL | hsl(238, 82%, 65%) |
| HSV | hsv(238, 62%, 94%) |
| CMYK | cmyk(62.3%, 60.3%, 0%, 6.3%) |
| CIE-LAB | lab(47.74, 40.79, -73.24) |
| CIE-LCH | lch(47.74, 83.83, 299.12°) |
| OKLab | oklab(56.59% 0.0213 -0.2109) |
| OKLCH | oklch(56.59% 0.212 275.8) |
| XYZ | xyz(23.8836, 16.5881, 83.5878) |
| Luminance | 0.1659 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.26
Warm Blue
#4B57DB
ΔE00 4.31
Slate Blue
#6A5ACD
ΔE00 5.52
Light Indigo
#6D5ACF
ΔE00 5.54
Mediumslateblue
#7B68EE
ΔE00 5.63
Royal Blue
#4169E1
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FEF #EFEA5A
analogous
#5AA9EF #5A5FEF #A05AEF
triadic
#5A5FEF #EF5A5F #5FEF5A
tetradic
#5A5FEF #EF5AA9 #EFEA5A #5AEFA0
square
#5A5FEF #EF5AA9 #EFEA5A #5AEFA0
split-complementary
#5A5FEF #EFA05A #A9EF5A
monochromatic
#1218BC #2229EA #5A5FEF #9295F4 #CACBFA
Accessibility & contrast
On white
4.86
#5A5FEF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#5A5FEF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FEF
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FEF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FEF | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#006BEC
Tritanopia (blue-blind)
#00839E
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5fef; /* rgb */ color: rgb(90, 95, 239); /* oklch */ color: oklch(56.6% 0.212 275.8);
Tailwind
colors: {
custom: {
50: '#978cf5',
500: '#5a5fef',
950: '#000000',
},
}SCSS
$custom: #5a5fef; $custom-light: #978cf5; $custom-dark: #000000;
JSON
{
"hex": "#5a5fef",
"rgb": {
"r": 90,
"g": 95,
"b": 239
},
"hsl": {
"h": 237.987,
"s": 82.32,
"l": 64.51
},
"oklch": {
"l": 0.56594,
"c": 0.21193,
"h": 275.8
},
"luminance": 0.1659
}Semantic roles & 50–950 ramp
primary
#5A5FEF
secondary
#ECEAB9
accent
#D707DF
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85