#797EC5#797EC5
#797EC5 is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.9% C 0.107 H 279.7°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #797EC5 |
|---|---|
| RGB | rgb(121, 126, 197) |
| HSL | hsl(236, 40%, 62%) |
| HSV | hsv(236, 39%, 77%) |
| CMYK | cmyk(38.6%, 36%, 0%, 22.7%) |
| CIE-LAB | lab(55.09, 15.73, -37.59) |
| CIE-LCH | lch(55.09, 40.75, 292.70°) |
| OKLab | oklab(61.88% 0.018 -0.1054) |
| OKLCH | oklch(61.88% 0.107 279.7) |
| XYZ | xyz(25.4211, 23.0169, 55.9158) |
| Luminance | 0.2302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 6.83
Cornflower
#6A79F7
ΔE00 7.98
Lavender Blue
#8B88F8
ΔE00 8.12
Soft Blue
#6488EA
ΔE00 8.46
Mediumpurple
#9370DB
ΔE00 8.73
Faded Blue
#658CBB
ΔE00 8.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797EC5 #C5C079
analogous
#79A4C5 #797EC5 #9A79C5
triadic
#797EC5 #C5797E #7EC579
tetradic
#797EC5 #C579A4 #C5C079 #79C59A
square
#797EC5 #C579A4 #C5C079 #79C59A
split-complementary
#797EC5 #C59A79 #A4C579
monochromatic
#3B4089 #4E55B3 #797EC5 #A4A7D7 #CED0EA
Accessibility & contrast
On white
3.75
#797EC5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.60
#797EC5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797EC5
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797EC5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797EC5 | 1.00 | 3.75 | 5.60 | 5.60 |
| #FFFFFF | 3.75 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6787C8
Deuteranopia (green-blind)
#6281C3
Tritanopia (blue-blind)
#638C98
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #797ec5; /* rgb */ color: rgb(121, 126, 197); /* oklch */ color: oklch(61.9% 0.107 279.7);
Tailwind
colors: {
custom: {
50: '#a2a3d7',
500: '#797ec5',
950: '#000000',
},
}SCSS
$custom: #797ec5; $custom-light: #a2a3d7; $custom-dark: #000000;
JSON
{
"hex": "#797ec5",
"rgb": {
"r": 121,
"g": 126,
"b": 197
},
"hsl": {
"h": 236.053,
"s": 39.583,
"l": 62.353
},
"oklch": {
"l": 0.61877,
"c": 0.10692,
"h": 279.7
},
"luminance": 0.23018
}Semantic roles & 50–950 ramp
primary
#797EC5
secondary
#DBD9BF
accent
#AA33B3
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83