#797AE3#797AE3
#797AE3 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.8% C 0.155 H 280.5°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797AE3 |
|---|---|
| RGB | rgb(121, 122, 227) |
| HSL | hsl(239, 65%, 68%) |
| HSV | hsv(239, 47%, 89%) |
| CMYK | cmyk(46.7%, 46.3%, 0%, 11%) |
| CIE-LAB | lab(55.61, 26.79, -53.70) |
| CIE-LCH | lch(55.61, 60.01, 296.51°) |
| OKLab | oklab(62.78% 0.0284 -0.1524) |
| OKLCH | oklch(62.78% 0.155 280.5) |
| XYZ | xyz(28.7056, 23.5286, 75.6871) |
| Luminance | 0.2353 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.70
Periwinkle (survey)
#8E82FE
ΔE00 5.33
Lavender Blue
#8B88F8
ΔE00 5.37
Mediumslateblue
#7B68EE
ΔE00 5.88
Perrywinkle
#8F8CE7
ΔE00 6.22
Mediumpurple
#9370DB
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797AE3 #E3E279
analogous
#79AFE3 #797AE3 #AD79E3
triadic
#797AE3 #E3797A #7AE379
tetradic
#797AE3 #E379AF #E3E279 #79E3AD
square
#797AE3 #E379AF #E3E279 #79E3AD
split-complementary
#797AE3 #E3AD79 #AFE379
monochromatic
#2728BB #4648D8 #797AE3 #ACACEE #DEDEF8
Accessibility & contrast
On white
3.68
#797AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.71
#797AE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797AE3
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797AE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797AE3 | 1.00 | 3.68 | 5.71 | 5.71 |
| #FFFFFF | 3.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E89E7
Deuteranopia (green-blind)
#4781E1
Tritanopia (blue-blind)
#5490A4
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #797ae3; /* rgb */ color: rgb(121, 122, 227); /* oklch */ color: oklch(62.8% 0.155 280.5);
Tailwind
colors: {
custom: {
50: '#a5a0ec',
500: '#797ae3',
950: '#000000',
},
}SCSS
$custom: #797ae3; $custom-light: #a5a0ec; $custom-dark: #000000;
JSON
{
"hex": "#797ae3",
"rgb": {
"r": 121,
"g": 122,
"b": 227
},
"hsl": {
"h": 239.434,
"s": 65.432,
"l": 68.235
},
"oklch": {
"l": 0.6278,
"c": 0.15504,
"h": 280.5
},
"luminance": 0.2353
}Semantic roles & 50–950 ramp
primary
#797AE3
secondary
#ECECCC
accent
#CC18CD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84