#5A5FEE#5A5FEE
#5A5FEE is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.5% C 0.211 H 275.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FEE |
|---|---|
| RGB | rgb(90, 95, 238) |
| HSL | hsl(238, 81%, 64%) |
| HSV | hsv(238, 62%, 93%) |
| CMYK | cmyk(62.2%, 60.1%, 0%, 6.7%) |
| CIE-LAB | lab(47.66, 40.47, -72.80) |
| CIE-LCH | lch(47.66, 83.29, 299.07°) |
| OKLab | oklab(56.52% 0.0213 -0.2096) |
| OKLCH | oklch(56.52% 0.211 275.8) |
| XYZ | xyz(23.7362, 16.5292, 82.8119) |
| Luminance | 0.1653 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.15
Warm Blue
#4B57DB
ΔE00 4.22
Slate Blue
#6A5ACD
ΔE00 5.42
Light Indigo
#6D5ACF
ΔE00 5.46
Mediumslateblue
#7B68EE
ΔE00 5.66
Royal Blue
#4169E1
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FEE #EEE95A
analogous
#5AA9EE #5A5FEE #9F5AEE
triadic
#5A5FEE #EE5A5F #5FEE5A
tetradic
#5A5FEE #EE5AA9 #EEE95A #5AEE9F
square
#5A5FEE #EE5AA9 #EEE95A #5AEE9F
split-complementary
#5A5FEE #EE9F5A #A9EE5A
monochromatic
#1319BA #2329E8 #5A5FEE #9195F4 #C9CBF9
Accessibility & contrast
On white
4.88
#5A5FEE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#5A5FEE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FEE
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FEE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FEE | 1.00 | 4.88 | 4.31 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#006BEB
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5fee; /* rgb */ color: rgb(90, 95, 238); /* oklch */ color: oklch(56.5% 0.211 275.8);
Tailwind
colors: {
custom: {
50: '#978cf5',
500: '#5a5fee',
950: '#000000',
},
}SCSS
$custom: #5a5fee; $custom-light: #978cf5; $custom-dark: #000000;
JSON
{
"hex": "#5a5fee",
"rgb": {
"r": 90,
"g": 95,
"b": 238
},
"hsl": {
"h": 237.973,
"s": 81.319,
"l": 64.314
},
"oklch": {
"l": 0.56515,
"c": 0.21065,
"h": 275.8
},
"luminance": 0.16531
}Semantic roles & 50–950 ramp
primary
#5A5FEE
secondary
#ECEAB8
accent
#D608DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85