#5978F7#5978F7
#5978F7 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.7% C 0.192 H 269.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #5978F7 |
|---|---|
| RGB | rgb(89, 120, 247) |
| HSL | hsl(228, 91%, 66%) |
| HSV | hsv(228, 64%, 97%) |
| CMYK | cmyk(64%, 51.4%, 0%, 3.1%) |
| CIE-LAB | lab(54.31, 28.11, -67.04) |
| CIE-LCH | lch(54.31, 72.69, 292.75°) |
| OKLab | oklab(61.66% -0.0012 -0.1924) |
| OKLCH | oklch(61.66% 0.192 269.7) |
| XYZ | xyz(27.6191, 22.2697, 90.8206) |
| Luminance | 0.2227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.50
Lightish Blue
#3D7AFD
ΔE00 3.31
Cornflower Blue
#5170D7
ΔE00 5.10
Clear Blue
#247AFD
ΔE00 5.11
Soft Blue
#6488EA
ΔE00 5.29
Dodger Blue
#3E82FC
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5978F7 #F7D859
analogous
#59C7F7 #5978F7 #8959F7
triadic
#5978F7 #F75978 #78F759
tetradic
#5978F7 #F759C7 #F7D859 #59F789
square
#5978F7 #F759C7 #F7D859 #59F789
split-complementary
#5978F7 #F78959 #C7F759
monochromatic
#0A30CC #1F49F4 #5978F7 #93A7FA #CED7FD
Accessibility & contrast
On white
3.85
#5978F7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#5978F7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5978F7
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5978F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5978F7 | 1.00 | 3.85 | 5.45 | 5.45 |
| #FFFFFF | 3.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2989FB
Deuteranopia (green-blind)
#007BF4
Tritanopia (blue-blind)
#0096AC
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #5978f7; /* rgb */ color: rgb(89, 120, 247); /* oklch */ color: oklch(61.7% 0.192 269.7);
Tailwind
colors: {
custom: {
50: '#979efb',
500: '#5978f7',
950: '#000000',
},
}SCSS
$custom: #5978f7; $custom-light: #979efb; $custom-dark: #000000;
JSON
{
"hex": "#5978f7",
"rgb": {
"r": 89,
"g": 120,
"b": 247
},
"hsl": {
"h": 228.228,
"s": 90.805,
"l": 65.882
},
"oklch": {
"l": 0.61663,
"c": 0.19239,
"h": 269.7
},
"luminance": 0.22272
}Semantic roles & 50–950 ramp
primary
#5978F7
secondary
#F0E6BC
accent
#B800E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85