#A797DB#A797DB
#A797DB is a light, moderate violet. Relative luminance 0.355; OKLCH L 71.6% C 0.099 H 294.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).
Color values
| HEX | #A797DB |
|---|---|
| RGB | rgb(167, 151, 219) |
| HSL | hsl(254, 49%, 73%) |
| HSV | hsv(254, 31%, 86%) |
| CMYK | cmyk(23.7%, 31.1%, 0%, 14.1%) |
| CIE-LAB | lab(66.11, 20.11, -32.48) |
| CIE-LCH | lch(66.11, 38.20, 301.77°) |
| OKLab | oklab(71.56% 0.0411 -0.0898) |
| OKLCH | oklch(71.56% 0.099 294.6) |
| XYZ | xyz(39.7862, 35.4627, 71.7530) |
| Luminance | 0.3546 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 3.18
Pale Purple
#B790D4
ΔE00 5.58
Lavender (survey)
#C79FEF
ΔE00 6.58
Perrywinkle
#8F8CE7
ΔE00 7.15
Baby Purple
#CA9BF7
ΔE00 7.54
Pastel Purple
#CAA0FF
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A797DB #CBDB97
analogous
#97A9DB #A797DB #C997DB
triadic
#A797DB #DBA797 #97DBA7
tetradic
#A797DB #DB97A9 #CBDB97 #97DBC9
square
#A797DB #DB97A9 #CBDB97 #97DBC9
split-complementary
#A797DB #DBC997 #A9DB97
monochromatic
#5C40B8 #816ACB #A797DB #CDC4EB #ECE8F7
Accessibility & contrast
On white
2.59
#A797DB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.09
#A797DB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A797DB
8.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A797DB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A797DB | 1.00 | 2.59 | 8.09 | 8.09 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86A1DE
Deuteranopia (green-blind)
#88A0D9
Tritanopia (blue-blind)
#9CA2AF
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #a797db; /* rgb */ color: rgb(167, 151, 219); /* oklch */ color: oklch(71.6% 0.099 294.6);
Tailwind
colors: {
custom: {
50: '#c2b5e6',
500: '#a797db',
950: '#000000',
},
}SCSS
$custom: #a797db; $custom-light: #c2b5e6; $custom-dark: #000000;
JSON
{
"hex": "#a797db",
"rgb": {
"r": 167,
"g": 151,
"b": 219
},
"hsl": {
"h": 254.118,
"s": 48.571,
"l": 72.549
},
"oklch": {
"l": 0.71561,
"c": 0.09878,
"h": 294.6
},
"luminance": 0.35463
}Semantic roles & 50–950 ramp
primary
#A797DB
secondary
#EAEEDD
accent
#BC2A99
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#121116
muted
#818084