#D8A2FD#D8A2FD
#D8A2FD is a light, vivid violet. Relative luminance 0.475; OKLCH L 79.5% C 0.137 H 310.7°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #D8A2FD |
|---|---|
| RGB | rgb(216, 162, 253) |
| HSL | hsl(276, 96%, 81%) |
| HSV | hsv(276, 36%, 99%) |
| CMYK | cmyk(14.6%, 36%, 0%, 0.8%) |
| CIE-LAB | lab(74.53, 36.23, -37.66) |
| CIE-LCH | lch(74.53, 52.25, 313.89°) |
| OKLab | oklab(79.49% 0.0894 -0.1038) |
| OKLCH | oklch(79.49% 0.137 310.7) |
| XYZ | xyz(58.9657, 47.5323, 98.9778) |
| Luminance | 0.4753 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac (survey)
#CEA2FD
ΔE00 2.13
Baby Purple
#CA9BF7
ΔE00 2.80
Pastel Purple
#CAA0FF
ΔE00 3.13
Lavender (survey)
#C79FEF
ΔE00 3.31
Mauve
#E0B0FF
ΔE00 3.63
Pale Violet
#CEAEFA
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8A2FD #C7FDA2
analogous
#ABA2FD #D8A2FD #FDA2F5
triadic
#D8A2FD #FDD8A2 #A2FDD8
tetradic
#D8A2FD #FDABA2 #C7FDA2 #A2F5FD
square
#D8A2FD #FDABA2 #C7FDA2 #A2F5FD
split-complementary
#D8A2FD #F5FDA2 #A2FDAB
monochromatic
#A62AFA #BF66FC #D8A2FD #F1DEFE #F2E1FE
Accessibility & contrast
On white
2.00
#D8A2FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.51
#D8A2FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8A2FD
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8A2FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8A2FD | 1.00 | 2.00 | 10.51 | 10.51 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91B5FF
Deuteranopia (green-blind)
#9DB8FA
Tritanopia (blue-blind)
#D4AFC4
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #d8a2fd; /* rgb */ color: rgb(216, 162, 253); /* oklch */ color: oklch(79.5% 0.137 310.7);
Tailwind
colors: {
custom: {
50: '#e5befe',
500: '#d8a2fd',
950: '#000000',
},
}SCSS
$custom: #d8a2fd; $custom-light: #e5befe; $custom-dark: #000000;
JSON
{
"hex": "#d8a2fd",
"rgb": {
"r": 216,
"g": 162,
"b": 253
},
"hsl": {
"h": 275.604,
"s": 95.789,
"l": 81.373
},
"oklch": {
"l": 0.79489,
"c": 0.13705,
"h": 310.7
},
"luminance": 0.47531
}Semantic roles & 50–950 ramp
primary
#D8A2FD
secondary
#E2F7D4
accent
#E6005D
background
#FEFBFF
surface
#FCF7FF
border
#D5D0D7
text
#161218
muted
#848186