#797FE1#797FE1
#797FE1 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.6% C 0.145 H 278.8°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #797FE1 |
|---|---|
| RGB | rgb(121, 127, 225) |
| HSL | hsl(237, 63%, 68%) |
| HSV | hsv(237, 46%, 88%) |
| CMYK | cmyk(46.2%, 43.6%, 0%, 11.8%) |
| CIE-LAB | lab(56.76, 23.22, -50.75) |
| CIE-LCH | lch(56.76, 55.81, 294.59°) |
| OKLab | oklab(63.62% 0.0222 -0.1437) |
| OKLCH | oklch(63.62% 0.145 278.8) |
| XYZ | xyz(29.0610, 24.6784, 74.4517) |
| Luminance | 0.2468 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 4.09
Lavender Blue
#8B88F8
ΔE00 4.71
Perrywinkle
#8F8CE7
ΔE00 5.18
Periwinkle (survey)
#8E82FE
ΔE00 5.36
Soft Blue
#6488EA
ΔE00 6.02
Mediumslateblue
#7B68EE
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797FE1 #E1DB79
analogous
#79B3E1 #797FE1 #A779E1
triadic
#797FE1 #E1797F #7FE179
tetradic
#797FE1 #E179B3 #E1DB79 #79E1A7
square
#797FE1 #E179B3 #E1DB79 #79E1A7
split-complementary
#797FE1 #E1A779 #B3E179
monochromatic
#2931B7 #474FD6 #797FE1 #ABAFEC #DDDFF7
Accessibility & contrast
On white
3.54
#797FE1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.94
#797FE1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797FE1
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797FE1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797FE1 | 1.00 | 3.54 | 5.94 | 5.94 |
| #FFFFFF | 3.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#588CE5
Deuteranopia (green-blind)
#5084DF
Tritanopia (blue-blind)
#5493A5
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #797fe1; /* rgb */ color: rgb(121, 127, 225); /* oklch */ color: oklch(63.6% 0.145 278.8);
Tailwind
colors: {
custom: {
50: '#a5a4eb',
500: '#797fe1',
950: '#000000',
},
}SCSS
$custom: #797fe1; $custom-light: #a5a4eb; $custom-dark: #000000;
JSON
{
"hex": "#797fe1",
"rgb": {
"r": 121,
"g": 127,
"b": 225
},
"hsl": {
"h": 236.538,
"s": 63.415,
"l": 67.843
},
"oklch": {
"l": 0.63616,
"c": 0.14545,
"h": 278.8
},
"luminance": 0.2468
}Semantic roles & 50–950 ramp
primary
#797FE1
secondary
#EBE9CB
accent
#C11ACB
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84