#797CD5#797CD5
#797CD5 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.3% C 0.133 H 280.4°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #797CD5 |
|---|---|
| RGB | rgb(121, 124, 213) |
| HSL | hsl(238, 52%, 65%) |
| HSV | hsv(238, 43%, 84%) |
| CMYK | cmyk(43.2%, 41.8%, 0%, 16.5%) |
| CIE-LAB | lab(55.36, 21.49, -46.23) |
| CIE-LCH | lch(55.36, 50.98, 294.93°) |
| OKLab | oklab(62.34% 0.0239 -0.1305) |
| OKLCH | oklch(62.34% 0.133 280.4) |
| XYZ | xyz(27.0995, 23.2831, 66.0041) |
| Luminance | 0.2328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 5.47
Perrywinkle
#8F8CE7
ΔE00 6.01
Lavender Blue
#8B88F8
ΔE00 6.27
Periwinkle (survey)
#8E82FE
ΔE00 6.74
Mediumslateblue
#7B68EE
ΔE00 7.41
Soft Blue
#6488EA
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797CD5 #D5D279
analogous
#79AAD5 #797CD5 #A479D5
triadic
#797CD5 #D5797C #7CD579
tetradic
#797CD5 #D579AA #D5D279 #79D5A4
square
#797CD5 #D579AA #D5D279 #79D5A4
split-complementary
#797CD5 #D5A479 #AAD579
monochromatic
#3236A1 #4A4EC6 #797CD5 #A8AAE4 #D6D7F2
Accessibility & contrast
On white
3.71
#797CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.66
#797CD5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797CD5
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797CD5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797CD5 | 1.00 | 3.71 | 5.66 | 5.66 |
| #FFFFFF | 3.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B88D8
Deuteranopia (green-blind)
#5681D3
Tritanopia (blue-blind)
#5B8E9E
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #797cd5; /* rgb */ color: rgb(121, 124, 213); /* oklch */ color: oklch(62.3% 0.133 280.4);
Tailwind
colors: {
custom: {
50: '#a4a1e2',
500: '#797cd5',
950: '#000000',
},
}SCSS
$custom: #797cd5; $custom-light: #a4a1e2; $custom-dark: #000000;
JSON
{
"hex": "#797cd5",
"rgb": {
"r": 121,
"g": 124,
"b": 213
},
"hsl": {
"h": 238.043,
"s": 52.273,
"l": 65.49
},
"oklch": {
"l": 0.62345,
"c": 0.13269,
"h": 280.4
},
"luminance": 0.23284
}Semantic roles & 50–950 ramp
primary
#797CD5
secondary
#E4E3C5
accent
#BB26C0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83