#797EC1#797EC1
#797EC1 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.7% C 0.101 H 279.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).
Color values
| HEX | #797EC1 |
|---|---|
| RGB | rgb(121, 126, 193) |
| HSL | hsl(236, 37%, 62%) |
| HSV | hsv(236, 37%, 76%) |
| CMYK | cmyk(37.3%, 34.7%, 0%, 24.3%) |
| CIE-LAB | lab(54.90, 14.61, -35.61) |
| CIE-LCH | lch(54.90, 38.49, 292.31°) |
| OKLab | oklab(61.67% 0.0171 -0.0996) |
| OKLCH | oklch(61.67% 0.101 279.7) |
| XYZ | xyz(24.9689, 22.8360, 53.5339) |
| Luminance | 0.2284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 7.28
Cornflower
#6A79F7
ΔE00 8.65
Lavender Blue
#8B88F8
ΔE00 8.72
Faded Blue
#658CBB
ΔE00 8.93
Soft Blue
#6488EA
ΔE00 8.95
Mediumpurple
#9370DB
ΔE00 9.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797EC1 #C1BC79
analogous
#79A2C1 #797EC1 #9879C1
triadic
#797EC1 #C1797E #7EC179
tetradic
#797EC1 #C179A2 #C1BC79 #79C198
square
#797EC1 #C179A2 #C1BC79 #79C198
split-complementary
#797EC1 #C19879 #A2C179
monochromatic
#3D4183 #5056AD #797EC1 #A3A6D4 #CDCFE8
Accessibility & contrast
On white
3.77
#797EC1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.57
#797EC1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797EC1
5.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797EC1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797EC1 | 1.00 | 3.77 | 5.57 | 5.57 |
| #FFFFFF | 3.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6886C4
Deuteranopia (green-blind)
#6481BF
Tritanopia (blue-blind)
#648B96
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #797ec1; /* rgb */ color: rgb(121, 126, 193); /* oklch */ color: oklch(61.7% 0.101 279.7);
Tailwind
colors: {
custom: {
50: '#a2a3d4',
500: '#797ec1',
950: '#000000',
},
}SCSS
$custom: #797ec1; $custom-light: #a2a3d4; $custom-dark: #000000;
JSON
{
"hex": "#797ec1",
"rgb": {
"r": 121,
"g": 126,
"b": 193
},
"hsl": {
"h": 235.833,
"s": 36.735,
"l": 61.569
},
"oklch": {
"l": 0.61672,
"c": 0.10108,
"h": 279.7
},
"luminance": 0.22837
}Semantic roles & 50–950 ramp
primary
#797EC1
secondary
#D8D6BE
accent
#A736B0
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83