#797CD4#797CD4
#797CD4 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.3% C 0.131 H 280.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #797CD4 |
|---|---|
| RGB | rgb(121, 124, 212) |
| HSL | hsl(238, 51%, 65%) |
| HSV | hsv(238, 43%, 83%) |
| CMYK | cmyk(42.9%, 41.5%, 0%, 16.9%) |
| CIE-LAB | lab(55.31, 21.20, -45.74) |
| CIE-LCH | lch(55.31, 50.42, 294.86°) |
| OKLab | oklab(62.29% 0.0237 -0.1291) |
| OKLCH | oklch(62.29% 0.131 280.4) |
| XYZ | xyz(26.9730, 23.2325, 65.3377) |
| Luminance | 0.2323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 5.62
Perrywinkle
#8F8CE7
ΔE00 6.05
Lavender Blue
#8B88F8
ΔE00 6.38
Periwinkle (survey)
#8E82FE
ΔE00 6.86
Soft Blue
#6488EA
ΔE00 7.48
Mediumslateblue
#7B68EE
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797CD4 #D4D179
analogous
#79A9D4 #797CD4 #A379D4
triadic
#797CD4 #D4797C #7CD479
tetradic
#797CD4 #D479A9 #D4D179 #79D4A3
square
#797CD4 #D479A9 #D4D179 #79D4A3
split-complementary
#797CD4 #D4A379 #A9D479
monochromatic
#33379F #4B4FC5 #797CD4 #A7A9E3 #D6D7F2
Accessibility & contrast
On white
3.72
#797CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.65
#797CD4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797CD4
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797CD4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797CD4 | 1.00 | 3.72 | 5.65 | 5.65 |
| #FFFFFF | 3.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C88D7
Deuteranopia (green-blind)
#5681D2
Tritanopia (blue-blind)
#5C8E9E
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #797cd4; /* rgb */ color: rgb(121, 124, 212); /* oklch */ color: oklch(62.3% 0.131 280.4);
Tailwind
colors: {
custom: {
50: '#a4a1e1',
500: '#797cd4',
950: '#000000',
},
}SCSS
$custom: #797cd4; $custom-light: #a4a1e1; $custom-dark: #000000;
JSON
{
"hex": "#797cd4",
"rgb": {
"r": 121,
"g": 124,
"b": 212
},
"hsl": {
"h": 238.022,
"s": 51.412,
"l": 65.294
},
"oklch": {
"l": 0.62289,
"c": 0.13127,
"h": 280.4
},
"luminance": 0.23234
}Semantic roles & 50–950 ramp
primary
#797CD4
secondary
#E4E3C5
accent
#BA27BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83