#796CA1#796CA1
#796CA1 is a mid, moderate violet. Relative luminance 0.174; OKLCH L 56.4% C 0.082 H 294.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #796CA1 |
|---|---|
| RGB | rgb(121, 108, 161) |
| HSL | hsl(255, 22%, 53%) |
| HSV | hsv(255, 33%, 63%) |
| CMYK | cmyk(24.8%, 32.9%, 0%, 36.9%) |
| CIE-LAB | lab(48.71, 16.86, -26.75) |
| CIE-LCH | lch(48.71, 31.62, 302.21°) |
| OKLab | oklab(56.44% 0.0344 -0.0741) |
| OKLCH | oklch(56.44% 0.082 294.9) |
| XYZ | xyz(19.6792, 17.3631, 36.0259) |
| Luminance | 0.1736 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Lavender
#856798
ΔE00 5.15
Grey Purple
#826D8C
ΔE00 7.45
Greyish Purple
#887191
ΔE00 7.80
Faded Purple
#916E99
ΔE00 7.83
Deep Lilac
#966EBD
ΔE00 8.01
Deep Lavender
#8D5EB7
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CA1 #94A16C
analogous
#6C79A1 #796CA1 #936CA1
triadic
#796CA1 #A1796C #6CA179
tetradic
#796CA1 #A16C79 #94A16C #6CA193
square
#796CA1 #A16C79 #94A16C #6CA193
split-complementary
#796CA1 #A1936C #79A16C
monochromatic
#413959 #5C517F #796CA1 #9B91B9 #BDB7D1
Accessibility & contrast
On white
4.70
#796CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.47
#796CA1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #796CA1
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##796CA1 | 1.00 | 4.70 | 4.47 | 4.70 |
| #FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F74A3
Deuteranopia (green-blind)
#6073A0
Tritanopia (blue-blind)
#71757F
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #796ca1; /* rgb */ color: rgb(121, 108, 161); /* oklch */ color: oklch(56.4% 0.082 294.9);
Tailwind
colors: {
custom: {
50: '#a096bd',
500: '#796ca1',
950: '#000000',
},
}SCSS
$custom: #796ca1; $custom-light: #a096bd; $custom-dark: #000000;
JSON
{
"hex": "#796ca1",
"rgb": {
"r": 121,
"g": 108,
"b": 161
},
"hsl": {
"h": 254.717,
"s": 21.992,
"l": 52.745
},
"oklch": {
"l": 0.56443,
"c": 0.0817,
"h": 294.9
},
"luminance": 0.17363
}Semantic roles & 50–950 ramp
primary
#796CA1
secondary
#BAC0A9
accent
#BF69AA
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81