#797FE5#797FE5
#797FE5 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.151 H 278.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #797FE5 |
|---|---|
| RGB | rgb(121, 127, 229) |
| HSL | hsl(237, 68%, 69%) |
| HSV | hsv(237, 47%, 90%) |
| CMYK | cmyk(47.2%, 44.5%, 0%, 10.2%) |
| CIE-LAB | lab(56.98, 24.41, -52.64) |
| CIE-LCH | lch(56.98, 58.02, 294.87°) |
| OKLab | oklab(63.85% 0.0228 -0.1493) |
| OKLCH | oklch(63.85% 0.151 278.7) |
| XYZ | xyz(29.6131, 24.8993, 77.3592) |
| Luminance | 0.2490 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.68
Lavender Blue
#8B88F8
ΔE00 4.40
Periwinkle (survey)
#8E82FE
ΔE00 4.98
Perrywinkle
#8F8CE7
ΔE00 5.21
Soft Blue
#6488EA
ΔE00 5.90
Mediumslateblue
#7B68EE
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797FE5 #E5DF79
analogous
#79B5E5 #797FE5 #A979E5
triadic
#797FE5 #E5797F #7FE579
tetradic
#797FE5 #E579B5 #E5DF79 #79E5A9
square
#797FE5 #E579B5 #E5DF79 #79E5A9
split-complementary
#797FE5 #E5A979 #B5E579
monochromatic
#252EBF #464EDB #797FE5 #ACB0EF #E0E1F9
Accessibility & contrast
On white
3.51
#797FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.98
#797FE5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797FE5
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797FE5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797FE5 | 1.00 | 3.51 | 5.98 | 5.98 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#568DE9
Deuteranopia (green-blind)
#4D85E3
Tritanopia (blue-blind)
#5294A7
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #797fe5; /* rgb */ color: rgb(121, 127, 229); /* oklch */ color: oklch(63.9% 0.151 278.7);
Tailwind
colors: {
custom: {
50: '#a5a4ee',
500: '#797fe5',
950: '#000000',
},
}SCSS
$custom: #797fe5; $custom-light: #a5a4ee; $custom-dark: #000000;
JSON
{
"hex": "#797fe5",
"rgb": {
"r": 121,
"g": 127,
"b": 229
},
"hsl": {
"h": 236.667,
"s": 67.5,
"l": 68.627
},
"oklch": {
"l": 0.63851,
"c": 0.15101,
"h": 278.7
},
"luminance": 0.24901
}Semantic roles & 50–950 ramp
primary
#797FE5
secondary
#EDEBCD
accent
#C516CF
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84