#5A5FEC#5A5FEC
#5A5FEC is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.4% C 0.208 H 275.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FEC |
|---|---|
| RGB | rgb(90, 95, 236) |
| HSL | hsl(238, 79%, 64%) |
| HSV | hsv(238, 62%, 93%) |
| CMYK | cmyk(61.9%, 59.7%, 0%, 7.5%) |
| CIE-LAB | lab(47.51, 39.82, -71.92) |
| CIE-LCH | lch(47.51, 82.21, 298.97°) |
| OKLab | oklab(56.36% 0.0214 -0.207) |
| OKLCH | oklch(56.36% 0.208 275.9) |
| XYZ | xyz(23.4440, 16.4123, 81.2731) |
| Luminance | 0.1641 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.94
Warm Blue
#4B57DB
ΔE00 4.03
Slate Blue
#6A5ACD
ΔE00 5.23
Light Indigo
#6D5ACF
ΔE00 5.29
Royal Blue
#4169E1
ΔE00 5.61
Azul
#1D5DEC
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FEC #ECE75A
analogous
#5AA8EC #5A5FEC #9E5AEC
triadic
#5A5FEC #EC5A5F #5FEC5A
tetradic
#5A5FEC #EC5AA8 #ECE75A #5AEC9E
square
#5A5FEC #EC5AA8 #ECE75A #5AEC9E
split-complementary
#5A5FEC #EC9E5A #A8EC5A
monochromatic
#151BB7 #232AE6 #5A5FEC #9194F2 #C8C9F9
Accessibility & contrast
On white
4.90
#5A5FEC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#5A5FEC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FEC
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FEC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FEC | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#00829C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5fec; /* rgb */ color: rgb(90, 95, 236); /* oklch */ color: oklch(56.4% 0.208 275.9);
Tailwind
colors: {
custom: {
50: '#978cf3',
500: '#5a5fec',
950: '#000000',
},
}SCSS
$custom: #5a5fec; $custom-light: #978cf3; $custom-dark: #000000;
JSON
{
"hex": "#5a5fec",
"rgb": {
"r": 90,
"g": 95,
"b": 236
},
"hsl": {
"h": 237.945,
"s": 79.348,
"l": 63.922
},
"oklch": {
"l": 0.56357,
"c": 0.20809,
"h": 275.9
},
"luminance": 0.16414
}Semantic roles & 50–950 ramp
primary
#5A5FEC
secondary
#EBE9B7
accent
#D40ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85