#D28CF7#D28CF7
#D28CF7 is a light, vivid violet. Relative luminance 0.392; OKLCH L 75.0% C 0.164 H 313.1°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #D28CF7 |
|---|---|
| RGB | rgb(210, 140, 247) |
| HSL | hsl(279, 87%, 76%) |
| HSV | hsv(279, 43%, 97%) |
| CMYK | cmyk(15%, 43.3%, 0%, 3.1%) |
| CIE-LAB | lab(68.88, 45.02, -43.26) |
| CIE-LCH | lch(68.88, 62.44, 316.15°) |
| OKLab | oklab(75.01% 0.1122 -0.1199) |
| OKLCH | oklch(75.01% 0.164 313.1) |
| XYZ | xyz(52.7421, 39.1743, 92.7607) |
| Luminance | 0.3917 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.37
Baby Purple
#CA9BF7
ΔE00 4.25
Pastel Purple
#CAA0FF
ΔE00 5.60
Lilac (survey)
#CEA2FD
ΔE00 5.66
Lavender (survey)
#C79FEF
ΔE00 5.91
Violet (CSS)
#EE82EE
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D28CF7 #B1F78C
analogous
#9C8CF7 #D28CF7 #F78CE7
triadic
#D28CF7 #F7D28C #8CF7D2
tetradic
#D28CF7 #F79C8C #B1F78C #8CE7F7
square
#D28CF7 #F79C8C #B1F78C #8CE7F7
split-complementary
#D28CF7 #E7F78C #8CF79C
monochromatic
#A51AEF #BC53F3 #D28CF7 #E8C5FB #F4E2FD
Accessibility & contrast
On white
2.38
#D28CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.83
#D28CF7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D28CF7
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D28CF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D28CF7 | 1.00 | 2.38 | 8.83 | 8.83 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#77A4FB
Deuteranopia (green-blind)
#89AAF4
Tritanopia (blue-blind)
#CF9CB6
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #d28cf7; /* rgb */ color: rgb(210, 140, 247); /* oklch */ color: oklch(75.0% 0.164 313.1);
Tailwind
colors: {
custom: {
50: '#e1affa',
500: '#d28cf7',
950: '#000000',
},
}SCSS
$custom: #d28cf7; $custom-light: #e1affa; $custom-dark: #000000;
JSON
{
"hex": "#d28cf7",
"rgb": {
"r": 210,
"g": 140,
"b": 247
},
"hsl": {
"h": 279.252,
"s": 86.992,
"l": 75.882
},
"oklch": {
"l": 0.75008,
"c": 0.16425,
"h": 313.1
},
"luminance": 0.39173
}Semantic roles & 50–950 ramp
primary
#D28CF7
secondary
#E1F5D6
accent
#E40250
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#151017
muted
#847F85