#A796EF#A796EF
#A796EF is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.3% C 0.128 H 291.6°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A796EF |
|---|---|
| RGB | rgb(167, 150, 239) |
| HSL | hsl(251, 74%, 76%) |
| HSV | hsv(251, 37%, 94%) |
| CMYK | cmyk(30.1%, 37.2%, 0%, 6.3%) |
| CIE-LAB | lab(66.72, 25.56, -42.55) |
| CIE-LCH | lch(66.72, 49.64, 300.99°) |
| OKLab | oklab(72.31% 0.0472 -0.1188) |
| OKLCH | oklch(72.31% 0.128 291.6) |
| XYZ | xyz(42.4187, 36.2594, 86.4085) |
| Luminance | 0.3626 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 5.09
Lavender
#B39DDB
ΔE00 6.38
Periwinkle Blue
#8F99FB
ΔE00 6.59
Pastel Purple
#CAA0FF
ΔE00 6.83
Liliac
#C48EFD
ΔE00 6.84
Lavender Blue
#8B88F8
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A796EF #DEEF96
analogous
#96B2EF #A796EF #D496EF
triadic
#A796EF #EFA796 #96EFA7
tetradic
#A796EF #EF96B2 #DEEF96 #96EFD4
square
#A796EF #EF96B2 #DEEF96 #96EFD4
split-complementary
#A796EF #EFD496 #B2EF96
monochromatic
#4E2CDF #7A61E7 #A796EF #D4CBF7 #E9E4FB
Accessibility & contrast
On white
2.54
#A796EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.25
#A796EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A796EF
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A796EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A796EF | 1.00 | 2.54 | 8.25 | 8.25 |
| #FFFFFF | 2.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7CA4F2
Deuteranopia (green-blind)
#7EA1ED
Tritanopia (blue-blind)
#97A6B7
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #a796ef; /* rgb */ color: rgb(167, 150, 239); /* oklch */ color: oklch(72.3% 0.128 291.6);
Tailwind
colors: {
custom: {
50: '#c3b5f4',
500: '#a796ef',
950: '#000000',
},
}SCSS
$custom: #a796ef; $custom-light: #c3b5f4; $custom-dark: #000000;
JSON
{
"hex": "#a796ef",
"rgb": {
"r": 167,
"g": 150,
"b": 239
},
"hsl": {
"h": 251.461,
"s": 73.554,
"l": 76.275
},
"oklch": {
"l": 0.72309,
"c": 0.12783,
"h": 291.6
},
"luminance": 0.3626
}Semantic roles & 50–950 ramp
primary
#A796EF
secondary
#EEF3D8
accent
#D610B0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085