#D8A2FC#D8A2FC
#D8A2FC is a light, vivid violet. Relative luminance 0.475; OKLCH L 79.4% C 0.136 H 311.0°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #D8A2FC |
|---|---|
| RGB | rgb(216, 162, 252) |
| HSL | hsl(276, 94%, 81%) |
| HSV | hsv(276, 36%, 99%) |
| CMYK | cmyk(14.3%, 35.7%, 0%, 1.2%) |
| CIE-LAB | lab(74.49, 36.02, -37.18) |
| CIE-LCH | lch(74.49, 51.77, 314.09°) |
| OKLab | oklab(79.44% 0.0892 -0.1025) |
| OKLCH | oklch(79.44% 0.136 311) |
| XYZ | xyz(58.8068, 47.4687, 98.1410) |
| Luminance | 0.4747 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac (survey)
#CEA2FD
ΔE00 2.22
Baby Purple
#CA9BF7
ΔE00 2.85
Pastel Purple
#CAA0FF
ΔE00 3.25
Lavender (survey)
#C79FEF
ΔE00 3.26
Mauve
#E0B0FF
ΔE00 3.55
Pale Violet
#CEAEFA
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D8A2FC #C6FCA2
analogous
#ABA2FC #D8A2FC #FCA2F3
triadic
#D8A2FC #FCD8A2 #A2FCD8
tetradic
#D8A2FC #FCABA2 #C6FCA2 #A2F3FC
square
#D8A2FC #FCABA2 #C6FCA2 #A2F3FC
split-complementary
#D8A2FC #F3FCA2 #A2FCAB
monochromatic
#A62BF8 #BF67FA #D8A2FC #F1DDFE #F3E1FE
Accessibility & contrast
On white
2.00
#D8A2FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.49
#D8A2FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D8A2FC
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D8A2FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D8A2FC | 1.00 | 2.00 | 10.49 | 10.49 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92B5FF
Deuteranopia (green-blind)
#9EB8F9
Tritanopia (blue-blind)
#D4AFC4
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #d8a2fc; /* rgb */ color: rgb(216, 162, 252); /* oklch */ color: oklch(79.4% 0.136 311.0);
Tailwind
colors: {
custom: {
50: '#e5befd',
500: '#d8a2fc',
950: '#000000',
},
}SCSS
$custom: #d8a2fc; $custom-light: #e5befd; $custom-dark: #000000;
JSON
{
"hex": "#d8a2fc",
"rgb": {
"r": 216,
"g": 162,
"b": 252
},
"hsl": {
"h": 276,
"s": 93.75,
"l": 81.176
},
"oklch": {
"l": 0.79445,
"c": 0.13587,
"h": 311
},
"luminance": 0.47468
}Semantic roles & 50–950 ramp
primary
#D8A2FC
secondary
#E2F6D5
accent
#E6005C
background
#FEFBFF
surface
#FCF7FF
border
#D5D0D7
text
#161217
muted
#848185