#5796F6#5796F6
#5796F6 is a light, vivid blue. Relative luminance 0.305; OKLCH L 67.6% C 0.157 H 258.6°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #5796F6 |
|---|---|
| RGB | rgb(87, 150, 246) |
| HSL | hsl(216, 90%, 65%) |
| HSV | hsv(216, 65%, 96%) |
| CMYK | cmyk(64.6%, 39%, 0%, 3.5%) |
| CIE-LAB | lab(62.07, 9.36, -54.05) |
| CIE-LCH | lch(62.07, 54.86, 279.82°) |
| OKLab | oklab(67.57% -0.031 -0.1539) |
| OKLCH | oklch(67.57% 0.157 258.6) |
| XYZ | xyz(31.4654, 30.4897, 91.3978) |
| Luminance | 0.3049 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflowerblue
#6495ED
ΔE00 1.93
Dark Sky Blue
#448EE4
ΔE00 3.84
Dodgerblue
#1E90FF
ΔE00 3.89
Soft Blue
#6488EA
ΔE00 5.83
Dodger Blue
#3E82FC
ΔE00 6.20
Faded Blue
#658CBB
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5796F6 #F6B757
analogous
#57E6F6 #5796F6 #6757F6
triadic
#5796F6 #F65796 #96F657
tetradic
#5796F6 #F657E6 #F6B757 #57F667
square
#5796F6 #F657E6 #F6B757 #57F667
split-complementary
#5796F6 #F66757 #E6F657
monochromatic
#0B56C8 #1D72F3 #5796F6 #91BAF9 #CBDFFC
Accessibility & contrast
On white
2.96
#5796F6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.10
#5796F6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #5796F6
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5796F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5796F6 | 1.00 | 2.96 | 7.10 | 7.10 |
| #FFFFFF | 2.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B9EFA
Deuteranopia (green-blind)
#538FF4
Tritanopia (blue-blind)
#00ACBA
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #5796f6; /* rgb */ color: rgb(87, 150, 246); /* oklch */ color: oklch(67.6% 0.157 258.6);
Tailwind
colors: {
custom: {
50: '#95b4f9',
500: '#5796f6',
950: '#000000',
},
}SCSS
$custom: #5796f6; $custom-light: #95b4f9; $custom-dark: #000000;
JSON
{
"hex": "#5796f6",
"rgb": {
"r": 87,
"g": 150,
"b": 246
},
"hsl": {
"h": 216.226,
"s": 89.831,
"l": 65.294
},
"oklch": {
"l": 0.67569,
"c": 0.15695,
"h": 258.6
},
"luminance": 0.30493
}Semantic roles & 50–950 ramp
primary
#5796F6
secondary
#EFDABA
accent
#8B00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085