#797AE2#797AE2
#797AE2 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.7% C 0.154 H 280.6°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #797AE2 |
|---|---|
| RGB | rgb(121, 122, 226) |
| HSL | hsl(239, 64%, 68%) |
| HSV | hsv(239, 46%, 89%) |
| CMYK | cmyk(46.5%, 46%, 0%, 11.4%) |
| CIE-LAB | lab(55.56, 26.49, -53.23) |
| CIE-LCH | lch(55.56, 59.45, 296.46°) |
| OKLab | oklab(62.72% 0.0283 -0.151) |
| OKLCH | oklch(62.72% 0.154 280.6) |
| XYZ | xyz(28.5680, 23.4736, 74.9623) |
| Luminance | 0.2347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.81
Periwinkle (survey)
#8E82FE
ΔE00 5.42
Lavender Blue
#8B88F8
ΔE00 5.44
Mediumslateblue
#7B68EE
ΔE00 5.93
Perrywinkle
#8F8CE7
ΔE00 6.22
Mediumpurple
#9370DB
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797AE2 #E2E179
analogous
#79AEE2 #797AE2 #AD79E2
triadic
#797AE2 #E2797A #7AE279
tetradic
#797AE2 #E279AE #E2E179 #79E2AD
square
#797AE2 #E279AE #E2E179 #79E2AD
split-complementary
#797AE2 #E2AD79 #AEE279
monochromatic
#2829B9 #4748D7 #797AE2 #ABACED #DEDEF8
Accessibility & contrast
On white
3.69
#797AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.69
#797AE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797AE2
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797AE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797AE2 | 1.00 | 3.69 | 5.69 | 5.69 |
| #FFFFFF | 3.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F89E6
Deuteranopia (green-blind)
#4881E0
Tritanopia (blue-blind)
#5490A3
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #797ae2; /* rgb */ color: rgb(121, 122, 226); /* oklch */ color: oklch(62.7% 0.154 280.6);
Tailwind
colors: {
custom: {
50: '#a5a0ec',
500: '#797ae2',
950: '#000000',
},
}SCSS
$custom: #797ae2; $custom-light: #a5a0ec; $custom-dark: #000000;
JSON
{
"hex": "#797ae2",
"rgb": {
"r": 121,
"g": 122,
"b": 226
},
"hsl": {
"h": 239.429,
"s": 64.417,
"l": 68.039
},
"oklch": {
"l": 0.6272,
"c": 0.15366,
"h": 280.6
},
"luminance": 0.23475
}Semantic roles & 50–950 ramp
primary
#797AE2
secondary
#EBEBCB
accent
#CB19CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84