#797AFE#797AFE
#797AFE is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.5% C 0.191 H 279.3°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #797AFE |
|---|---|
| RGB | rgb(121, 122, 254) |
| HSL | hsl(240, 99%, 74%) |
| HSV | hsv(240, 52%, 100%) |
| CMYK | cmyk(52.4%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(57.21, 34.90, -66.14) |
| CIE-LCH | lch(57.21, 74.78, 297.82°) |
| OKLab | oklab(64.5% 0.0308 -0.189) |
| OKLCH | oklch(64.5% 0.191 279.3) |
| XYZ | xyz(32.7285, 25.1378, 96.8742) |
| Luminance | 0.2514 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.68
Periwinkle (survey)
#8E82FE
ΔE00 3.95
Lavender Blue
#8B88F8
ΔE00 4.73
Mediumslateblue
#7B68EE
ΔE00 6.01
Perrywinkle
#8F8CE7
ΔE00 7.14
Soft Blue
#6488EA
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797AFE #FEFD79
analogous
#79BCFE #797AFE #BA79FE
triadic
#797AFE #FE797A #7AFE79
tetradic
#797AFE #FE79BC #FEFD79 #79FEBA
square
#797AFE #FE79BC #FEFD79 #79FEBA
split-complementary
#797AFE #FEBA79 #BCFE79
monochromatic
#0204FB #3C3EFE #797AFE #B6B6FE #E1E1FF
Accessibility & contrast
On white
3.48
#797AFE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#797AFE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797AFE
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797AFE | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#318FFF
Deuteranopia (green-blind)
#1C84FB
Tritanopia (blue-blind)
#3E98B0
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #797afe; /* rgb */ color: rgb(121, 122, 254); /* oklch */ color: oklch(64.5% 0.191 279.3);
Tailwind
colors: {
custom: {
50: '#a9a0ff',
500: '#797afe',
950: '#000000',
},
}SCSS
$custom: #797afe; $custom-light: #a9a0ff; $custom-dark: #000000;
JSON
{
"hex": "#797afe",
"rgb": {
"r": 121,
"g": 122,
"b": 254
},
"hsl": {
"h": 239.549,
"s": 98.519,
"l": 73.529
},
"oklch": {
"l": 0.64496,
"c": 0.19145,
"h": 279.3
},
"luminance": 0.2514
}Semantic roles & 50–950 ramp
primary
#797AFE
secondary
#F7F7D4
accent
#E400E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86