#797BC1#797BC1
#797BC1 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.1% C 0.105 H 281.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #797BC1 |
|---|---|
| RGB | rgb(121, 123, 193) |
| HSL | hsl(238, 37%, 62%) |
| HSV | hsv(238, 37%, 76%) |
| CMYK | cmyk(37.3%, 36.3%, 0%, 24.3%) |
| CIE-LAB | lab(54.11, 16.40, -36.85) |
| CIE-LCH | lch(54.11, 40.33, 293.99°) |
| OKLab | oklab(61.06% 0.0211 -0.1032) |
| OKLCH | oklch(61.06% 0.105 281.6) |
| XYZ | xyz(24.5910, 22.0802, 53.4080) |
| Luminance | 0.2208 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 7.73
Mediumpurple
#9370DB
ΔE00 8.30
Cornflower
#6A79F7
ΔE00 8.64
Cornflower Blue
#5170D7
ΔE00 8.93
Lavender Blue
#8B88F8
ΔE00 9.01
Mediumslateblue
#7B68EE
ΔE00 9.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797BC1 #C1BF79
analogous
#799FC1 #797BC1 #9B79C1
triadic
#797BC1 #C1797B #7BC179
tetradic
#797BC1 #C1799F #C1BF79 #79C19B
square
#797BC1 #C1799F #C1BF79 #79C19B
split-complementary
#797BC1 #C19B79 #9FC179
monochromatic
#3D3F83 #5053AD #797BC1 #A3A4D4 #CDCDE8
Accessibility & contrast
On white
3.88
#797BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#797BC1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797BC1
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797BC1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797BC1 | 1.00 | 3.88 | 5.42 | 5.42 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6484C4
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#658895
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #797bc1; /* rgb */ color: rgb(121, 123, 193); /* oklch */ color: oklch(61.1% 0.105 281.6);
Tailwind
colors: {
custom: {
50: '#a2a1d4',
500: '#797bc1',
950: '#000000',
},
}SCSS
$custom: #797bc1; $custom-light: #a2a1d4; $custom-dark: #000000;
JSON
{
"hex": "#797bc1",
"rgb": {
"r": 121,
"g": 123,
"b": 193
},
"hsl": {
"h": 238.333,
"s": 36.735,
"l": 61.569
},
"oklch": {
"l": 0.61064,
"c": 0.10536,
"h": 281.6
},
"luminance": 0.22081
}Semantic roles & 50–950 ramp
primary
#797BC1
secondary
#D8D8BE
accent
#AC36B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83