#797BCD#797BCD
#797BCD is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.7% C 0.123 H 281.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).
Color values
| HEX | #797BCD |
|---|---|
| RGB | rgb(121, 123, 205) |
| HSL | hsl(239, 46%, 64%) |
| HSV | hsv(239, 41%, 80%) |
| CMYK | cmyk(41%, 40%, 0%, 19.6%) |
| CIE-LAB | lab(54.70, 19.78, -42.75) |
| CIE-LCH | lch(54.70, 47.11, 294.83°) |
| OKLab | oklab(61.7% 0.0236 -0.1204) |
| OKLCH | oklch(61.7% 0.123 281.1) |
| XYZ | xyz(25.9844, 22.6376, 60.7461) |
| Luminance | 0.2264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 6.65
Cornflower
#6A79F7
ΔE00 6.66
Lavender Blue
#8B88F8
ΔE00 7.35
Mediumpurple
#9370DB
ΔE00 7.49
Periwinkle (survey)
#8E82FE
ΔE00 7.82
Mediumslateblue
#7B68EE
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797BCD #CDCB79
analogous
#79A5CD #797BCD #A179CD
triadic
#797BCD #CD797B #7BCD79
tetradic
#797BCD #CD79A5 #CDCB79 #79CDA1
square
#797BCD #CD79A5 #CDCB79 #79CDA1
split-complementary
#797BCD #CDA179 #A5CD79
monochromatic
#373A94 #4C4FBC #797BCD #A6A7DE #D2D3EE
Accessibility & contrast
On white
3.80
#797BCD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.53
#797BCD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797BCD
5.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797BCD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797BCD | 1.00 | 3.80 | 5.53 | 5.53 |
| #FFFFFF | 3.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E86D0
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#608B9A
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #797bcd; /* rgb */ color: rgb(121, 123, 205); /* oklch */ color: oklch(61.7% 0.123 281.1);
Tailwind
colors: {
custom: {
50: '#a3a1dc',
500: '#797bcd',
950: '#000000',
},
}SCSS
$custom: #797bcd; $custom-light: #a3a1dc; $custom-dark: #000000;
JSON
{
"hex": "#797bcd",
"rgb": {
"r": 121,
"g": 123,
"b": 205
},
"hsl": {
"h": 238.571,
"s": 45.652,
"l": 63.922
},
"oklch": {
"l": 0.61704,
"c": 0.1227,
"h": 281.1
},
"luminance": 0.22639
}Semantic roles & 50–950 ramp
primary
#797BCD
secondary
#E0DFC2
accent
#B62DB9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83