#5A5FF1#5A5FF1
#5A5FF1 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.8% C 0.214 H 275.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FF1 |
|---|---|
| RGB | rgb(90, 95, 241) |
| HSL | hsl(238, 84%, 65%) |
| HSV | hsv(238, 63%, 95%) |
| CMYK | cmyk(62.7%, 60.6%, 0%, 5.5%) |
| CIE-LAB | lab(47.89, 41.44, -74.11) |
| CIE-LCH | lch(47.89, 84.91, 299.21°) |
| OKLab | oklab(56.75% 0.0212 -0.2134) |
| OKLCH | oklch(56.75% 0.214 275.7) |
| XYZ | xyz(24.1806, 16.7070, 85.1525) |
| Luminance | 0.1671 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.48
Warm Blue
#4B57DB
ΔE00 4.51
Mediumslateblue
#7B68EE
ΔE00 5.57
Slate Blue
#6A5ACD
ΔE00 5.71
Light Indigo
#6D5ACF
ΔE00 5.72
Royal Blue
#4169E1
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FF1 #F1EC5A
analogous
#5AABF1 #5A5FF1 #A05AF1
triadic
#5A5FF1 #F15A5F #5FF15A
tetradic
#5A5FF1 #F15AAB #F1EC5A #5AF1A0
square
#5A5FF1 #F15AAB #F1EC5A #5AF1A0
split-complementary
#5A5FF1 #F1A05A #ABF15A
monochromatic
#1016C0 #2228EC #5A5FF1 #9296F6 #CBCCFB
Accessibility & contrast
On white
4.84
#5A5FF1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#5A5FF1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FF1
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FF1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FF1 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F6
Deuteranopia (green-blind)
#006BEE
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5a5ff1; /* rgb */ color: rgb(90, 95, 241); /* oklch */ color: oklch(56.8% 0.214 275.7);
Tailwind
colors: {
custom: {
50: '#988cf7',
500: '#5a5ff1',
950: '#000000',
},
}SCSS
$custom: #5a5ff1; $custom-light: #988cf7; $custom-dark: #000000;
JSON
{
"hex": "#5a5ff1",
"rgb": {
"r": 90,
"g": 95,
"b": 241
},
"hsl": {
"h": 238.013,
"s": 84.358,
"l": 64.902
},
"oklch": {
"l": 0.56754,
"c": 0.21448,
"h": 275.7
},
"luminance": 0.16709
}Semantic roles & 50–950 ramp
primary
#5A5FF1
secondary
#EDEBBA
accent
#DA05E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85