#5A5BF7#5A5BF7
#5A5BF7 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.6% C 0.227 H 276.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5BF7 |
|---|---|
| RGB | rgb(90, 91, 247) |
| HSL | hsl(240, 91%, 66%) |
| HSV | hsv(240, 64%, 97%) |
| CMYK | cmyk(63.6%, 63.2%, 0%, 3.1%) |
| CIE-LAB | lab(47.46, 45.73, -78.18) |
| CIE-LCH | lch(47.46, 90.57, 300.33°) |
| OKLab | oklab(56.58% 0.024 -0.2254) |
| OKLCH | oklch(56.58% 0.227 276.1) |
| XYZ | xyz(24.7405, 16.3692, 89.8334) |
| Luminance | 0.1637 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.67
Dark Periwinkle
#665FD1
ΔE00 5.09
Electric Blue
#0652FF
ΔE00 5.50
Light Indigo
#6D5ACF
ΔE00 5.89
Slate Blue
#6A5ACD
ΔE00 5.94
Mediumslateblue
#7B68EE
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5BF7 #F7F65A
analogous
#5AA9F7 #5A5BF7 #A75AF7
triadic
#5A5BF7 #F75A5B #5BF75A
tetradic
#5A5BF7 #F75AA9 #F7F65A #5AF7A7
square
#5A5BF7 #F75AA9 #F7F65A #5AF7A7
split-complementary
#5A5BF7 #F7A75A #A9F75A
monochromatic
#0A0BCD #2021F4 #5A5BF7 #9495FA #CFCFFD
Accessibility & contrast
On white
4.91
#5A5BF7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#5A5BF7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5BF7
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5BF7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5BF7 | 1.00 | 4.91 | 4.27 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078FC
Deuteranopia (green-blind)
#006AF4
Tritanopia (blue-blind)
#0083A1
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5bf7; /* rgb */ color: rgb(90, 91, 247); /* oklch */ color: oklch(56.6% 0.227 276.1);
Tailwind
colors: {
custom: {
50: '#998afb',
500: '#5a5bf7',
950: '#000000',
},
}SCSS
$custom: #5a5bf7; $custom-light: #998afb; $custom-dark: #000000;
JSON
{
"hex": "#5a5bf7",
"rgb": {
"r": 90,
"g": 91,
"b": 247
},
"hsl": {
"h": 239.618,
"s": 90.751,
"l": 66.078
},
"oklch": {
"l": 0.56581,
"c": 0.22666,
"h": 276.1
},
"luminance": 0.16371
}Semantic roles & 50–950 ramp
primary
#5A5BF7
secondary
#F0F0BD
accent
#E400E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86