#797EC0#797EC0
#797EC0 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.6% C 0.100 H 279.7°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #797EC0 |
|---|---|
| RGB | rgb(121, 126, 192) |
| HSL | hsl(236, 36%, 61%) |
| HSV | hsv(236, 37%, 75%) |
| CMYK | cmyk(37%, 34.4%, 0%, 24.7%) |
| CIE-LAB | lab(54.86, 14.33, -35.11) |
| CIE-LCH | lch(54.86, 37.92, 292.21°) |
| OKLab | oklab(61.62% 0.0168 -0.0982) |
| OKLCH | oklch(61.62% 0.1 279.7) |
| XYZ | xyz(24.8577, 22.7915, 52.9484) |
| Luminance | 0.2279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 7.39
Cornflower
#6A79F7
ΔE00 8.82
Lavender Blue
#8B88F8
ΔE00 8.87
Faded Blue
#658CBB
ΔE00 8.97
Soft Blue
#6488EA
ΔE00 9.08
Mediumpurple
#9370DB
ΔE00 9.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797EC0 #C0BB79
analogous
#79A2C0 #797EC0 #9879C0
triadic
#797EC0 #C0797E #7EC079
tetradic
#797EC0 #C079A2 #C0BB79 #79C098
square
#797EC0 #C079A2 #C0BB79 #79C098
split-complementary
#797EC0 #C09879 #A2C079
monochromatic
#3D4282 #5157AB #797EC0 #A3A6D4 #CCCEE7
Accessibility & contrast
On white
3.78
#797EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.56
#797EC0 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797EC0
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797EC0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797EC0 | 1.00 | 3.78 | 5.56 | 5.56 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6986C3
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#658B96
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #797ec0; /* rgb */ color: rgb(121, 126, 192); /* oklch */ color: oklch(61.6% 0.100 279.7);
Tailwind
colors: {
custom: {
50: '#a2a3d3',
500: '#797ec0',
950: '#000000',
},
}SCSS
$custom: #797ec0; $custom-light: #a2a3d3; $custom-dark: #000000;
JSON
{
"hex": "#797ec0",
"rgb": {
"r": 121,
"g": 126,
"b": 192
},
"hsl": {
"h": 235.775,
"s": 36.041,
"l": 61.373
},
"oklch": {
"l": 0.61621,
"c": 0.09962,
"h": 279.7
},
"luminance": 0.22792
}Semantic roles & 50–950 ramp
primary
#797EC0
secondary
#D8D6BD
accent
#A637AF
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83