#D8A2FE#D8A2FE
#D8A2FE is a light, vivid violet. Relative luminance 0.476; OKLCH L 79.5% C 0.138 H 310.4°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #D8A2FE |
|---|---|
| RGB | rgb(216, 162, 254) |
| HSL | hsl(275, 98%, 82%) |
| HSV | hsv(275, 36%, 100%) |
| CMYK | cmyk(15%, 36.2%, 0%, 0.4%) |
| CIE-LAB | lab(74.57, 36.44, -38.13) |
| CIE-LCH | lch(74.57, 52.74, 313.70°) |
| OKLab | oklab(79.53% 0.0897 -0.1052) |
| OKLCH | oklch(79.53% 0.138 310.4) |
| XYZ | xyz(59.1254, 47.5961, 99.8190) |
| Luminance | 0.4759 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac (survey)
#CEA2FD
ΔE00 2.05
Baby Purple
#CA9BF7
ΔE00 2.76
Pastel Purple
#CAA0FF
ΔE00 3.02
Lavender (survey)
#C79FEF
ΔE00 3.37
Mauve
#E0B0FF
ΔE00 3.70
Pale Violet
#CEAEFA
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8A2FE #C8FEA2
analogous
#AAA2FE #D8A2FE #FEA2F6
triadic
#D8A2FE #FED8A2 #A2FED8
tetradic
#D8A2FE #FEAAA2 #C8FEA2 #A2F6FE
square
#D8A2FE #FEAAA2 #C8FEA2 #A2F6FE
split-complementary
#D8A2FE #F6FEA2 #A2FEAA
monochromatic
#A529FD #BF65FD #D8A2FE #F1DFFF #F2E1FF
Accessibility & contrast
On white
2.00
#D8A2FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.52
#D8A2FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8A2FE
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8A2FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8A2FE | 1.00 | 2.00 | 10.52 | 10.52 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91B5FF
Deuteranopia (green-blind)
#9DB9FB
Tritanopia (blue-blind)
#D4AFC4
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #d8a2fe; /* rgb */ color: rgb(216, 162, 254); /* oklch */ color: oklch(79.5% 0.138 310.4);
Tailwind
colors: {
custom: {
50: '#e5beff',
500: '#d8a2fe',
950: '#000000',
},
}SCSS
$custom: #d8a2fe; $custom-light: #e5beff; $custom-dark: #000000;
JSON
{
"hex": "#d8a2fe",
"rgb": {
"r": 216,
"g": 162,
"b": 254
},
"hsl": {
"h": 275.217,
"s": 97.872,
"l": 81.569
},
"oklch": {
"l": 0.79533,
"c": 0.13823,
"h": 310.4
},
"luminance": 0.47595
}Semantic roles & 50–950 ramp
primary
#D8A2FE
secondary
#E2F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF7FF
border
#D5D0D7
text
#161218
muted
#848186