#797BCE#797BCE
#797BCE is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.8% C 0.124 H 281.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #797BCE |
|---|---|
| RGB | rgb(121, 123, 206) |
| HSL | hsl(239, 46%, 64%) |
| HSV | hsv(239, 41%, 81%) |
| CMYK | cmyk(41.3%, 40.3%, 0%, 19.2%) |
| CIE-LAB | lab(54.75, 20.07, -43.24) |
| CIE-LCH | lch(54.75, 47.67, 294.89°) |
| OKLab | oklab(61.76% 0.0238 -0.1218) |
| OKLCH | oklch(61.76% 0.124 281.1) |
| XYZ | xyz(26.1054, 22.6860, 61.3839) |
| Luminance | 0.2269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 6.51
Perrywinkle
#8F8CE7
ΔE00 6.58
Lavender Blue
#8B88F8
ΔE00 7.23
Mediumpurple
#9370DB
ΔE00 7.45
Periwinkle (survey)
#8E82FE
ΔE00 7.68
Mediumslateblue
#7B68EE
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797BCE #CECC79
analogous
#79A6CE #797BCE #A279CE
triadic
#797BCE #CE797B #7BCE79
tetradic
#797BCE #CE79A6 #CECC79 #79CEA2
square
#797BCE #CE79A6 #CECC79 #79CEA2
split-complementary
#797BCE #CEA279 #A6CE79
monochromatic
#373996 #4C4FBE #797BCE #A6A7DE #D3D3EF
Accessibility & contrast
On white
3.79
#797BCE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#797BCE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797BCE
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797BCE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797BCE | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E86D1
Deuteranopia (green-blind)
#5980CC
Tritanopia (blue-blind)
#5F8C9A
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #797bce; /* rgb */ color: rgb(121, 123, 206); /* oklch */ color: oklch(61.8% 0.124 281.1);
Tailwind
colors: {
custom: {
50: '#a3a1dd',
500: '#797bce',
950: '#000000',
},
}SCSS
$custom: #797bce; $custom-light: #a3a1dd; $custom-dark: #000000;
JSON
{
"hex": "#797bce",
"rgb": {
"r": 121,
"g": 123,
"b": 206
},
"hsl": {
"h": 238.588,
"s": 46.448,
"l": 64.118
},
"oklch": {
"l": 0.61759,
"c": 0.12414,
"h": 281.1
},
"luminance": 0.22687
}Semantic roles & 50–950 ramp
primary
#797BCE
secondary
#E0E0C3
accent
#B62CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83