#A797F0#A797F0
#A797F0 is a light, vivid violet. Relative luminance 0.366; OKLCH L 72.5% C 0.128 H 291.1°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).
Color values
| HEX | #A797F0 |
|---|---|
| RGB | rgb(167, 151, 240) |
| HSL | hsl(251, 75%, 77%) |
| HSV | hsv(251, 37%, 94%) |
| CMYK | cmyk(30.4%, 37.1%, 0%, 5.9%) |
| CIE-LAB | lab(67.01, 25.24, -42.65) |
| CIE-LCH | lch(67.01, 49.56, 300.62°) |
| OKLab | oklab(72.54% 0.046 -0.1191) |
| OKLCH | oklch(72.54% 0.128 291.1) |
| XYZ | xyz(42.7271, 36.6391, 87.2421) |
| Luminance | 0.3664 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 5.14
Periwinkle Blue
#8F99FB
ΔE00 6.38
Lavender
#B39DDB
ΔE00 6.45
Pastel Purple
#CAA0FF
ΔE00 6.85
Lavender Blue
#8B88F8
ΔE00 6.89
Liliac
#C48EFD
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A797F0 #E0F097
analogous
#97B4F0 #A797F0 #D497F0
triadic
#A797F0 #F0A797 #97F0A7
tetradic
#A797F0 #F097B4 #E0F097 #97F0D4
square
#A797F0 #F097B4 #E0F097 #97F0D4
split-complementary
#A797F0 #F0D497 #B4F097
monochromatic
#4C2CE1 #7A62E8 #A797F0 #D4CCF8 #E8E4FB
Accessibility & contrast
On white
2.52
#A797F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.33
#A797F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A797F0
8.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A797F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A797F0 | 1.00 | 2.52 | 8.33 | 8.33 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7DA5F3
Deuteranopia (green-blind)
#7EA1EE
Tritanopia (blue-blind)
#96A7B8
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #a797f0; /* rgb */ color: rgb(167, 151, 240); /* oklch */ color: oklch(72.5% 0.128 291.1);
Tailwind
colors: {
custom: {
50: '#c3b5f5',
500: '#a797f0',
950: '#000000',
},
}SCSS
$custom: #a797f0; $custom-light: #c3b5f5; $custom-dark: #000000;
JSON
{
"hex": "#a797f0",
"rgb": {
"r": 167,
"g": 151,
"b": 240
},
"hsl": {
"h": 250.787,
"s": 74.79,
"l": 76.667
},
"oklch": {
"l": 0.72544,
"c": 0.12768,
"h": 291.1
},
"luminance": 0.3664
}Semantic roles & 50–950 ramp
primary
#A797F0
secondary
#EEF3D8
accent
#D70FB3
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085