#797CD1#797CD1
#797CD1 is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.1% C 0.127 H 280.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #797CD1 |
|---|---|
| RGB | rgb(121, 124, 209) |
| HSL | hsl(238, 49%, 65%) |
| HSV | hsv(238, 42%, 82%) |
| CMYK | cmyk(42.1%, 40.7%, 0%, 18%) |
| CIE-LAB | lab(55.16, 20.33, -44.29) |
| CIE-LCH | lch(55.16, 48.74, 294.66°) |
| OKLab | oklab(62.12% 0.0231 -0.1249) |
| OKLCH | oklch(62.12% 0.127 280.5) |
| XYZ | xyz(26.5980, 23.0825, 63.3631) |
| Luminance | 0.2308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 6.05
Perrywinkle
#8F8CE7
ΔE00 6.20
Lavender Blue
#8B88F8
ΔE00 6.73
Periwinkle (survey)
#8E82FE
ΔE00 7.25
Mediumpurple
#9370DB
ΔE00 7.59
Soft Blue
#6488EA
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797CD1 #D1CE79
analogous
#79A8D1 #797CD1 #A279D1
triadic
#797CD1 #D1797C #7CD179
tetradic
#797CD1 #D179A8 #D1CE79 #79D1A2
square
#797CD1 #D179A8 #D1CE79 #79D1A2
split-complementary
#797CD1 #D1A279 #A8D179
monochromatic
#35399B #4B4FC1 #797CD1 #A7A9E1 #D4D5F0
Accessibility & contrast
On white
3.74
#797CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.62
#797CD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797CD1
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797CD1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797CD1 | 1.00 | 3.74 | 5.62 | 5.62 |
| #FFFFFF | 3.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D87D4
Deuteranopia (green-blind)
#5881CF
Tritanopia (blue-blind)
#5D8D9C
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #797cd1; /* rgb */ color: rgb(121, 124, 209); /* oklch */ color: oklch(62.1% 0.127 280.5);
Tailwind
colors: {
custom: {
50: '#a3a1df',
500: '#797cd1',
950: '#000000',
},
}SCSS
$custom: #797cd1; $custom-light: #a3a1df; $custom-dark: #000000;
JSON
{
"hex": "#797cd1",
"rgb": {
"r": 121,
"g": 124,
"b": 209
},
"hsl": {
"h": 237.955,
"s": 48.889,
"l": 64.706
},
"oklch": {
"l": 0.62121,
"c": 0.12701,
"h": 280.5
},
"luminance": 0.23084
}Semantic roles & 50–950 ramp
primary
#797CD1
secondary
#E2E1C4
accent
#B729BC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83