#5A5FED#5A5FED
#5A5FED is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.4% C 0.209 H 275.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FED |
|---|---|
| RGB | rgb(90, 95, 237) |
| HSL | hsl(238, 80%, 64%) |
| HSV | hsv(238, 62%, 93%) |
| CMYK | cmyk(62%, 59.9%, 0%, 7.1%) |
| CIE-LAB | lab(47.59, 40.14, -72.36) |
| CIE-LCH | lch(47.59, 82.75, 299.02°) |
| OKLab | oklab(56.44% 0.0213 -0.2083) |
| OKLCH | oklch(56.44% 0.209 275.9) |
| XYZ | xyz(23.5897, 16.4706, 82.0404) |
| Luminance | 0.1647 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.05
Warm Blue
#4B57DB
ΔE00 4.12
Slate Blue
#6A5ACD
ΔE00 5.33
Light Indigo
#6D5ACF
ΔE00 5.38
Royal Blue
#4169E1
ΔE00 5.65
Azul
#1D5DEC
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FED #EDE85A
analogous
#5AA9ED #5A5FED #9F5AED
triadic
#5A5FED #ED5A5F #5FED5A
tetradic
#5A5FED #ED5AA9 #EDE85A #5AED9F
square
#5A5FED #ED5AA9 #EDE85A #5AED9F
split-complementary
#5A5FED #ED9F5A #A9ED5A
monochromatic
#141AB8 #2329E7 #5A5FED #9195F3 #C8CAF9
Accessibility & contrast
On white
4.89
#5A5FED on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#5A5FED on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FED
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FED | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FED | 1.00 | 4.89 | 4.29 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F2
Deuteranopia (green-blind)
#006BEA
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5fed; /* rgb */ color: rgb(90, 95, 237); /* oklch */ color: oklch(56.4% 0.209 275.9);
Tailwind
colors: {
custom: {
50: '#978cf4',
500: '#5a5fed',
950: '#000000',
},
}SCSS
$custom: #5a5fed; $custom-light: #978cf4; $custom-dark: #000000;
JSON
{
"hex": "#5a5fed",
"rgb": {
"r": 90,
"g": 95,
"b": 237
},
"hsl": {
"h": 237.959,
"s": 80.328,
"l": 64.118
},
"oklch": {
"l": 0.56436,
"c": 0.20937,
"h": 275.9
},
"luminance": 0.16473
}Semantic roles & 50–950 ramp
primary
#5A5FED
secondary
#EBE9B8
accent
#D509DD
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85