#D798FA#D798FA
#D798FA is a light, vivid violet. Relative luminance 0.438; OKLCH L 77.6% C 0.150 H 312.8°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #D798FA |
|---|---|
| RGB | rgb(215, 152, 250) |
| HSL | hsl(279, 91%, 79%) |
| HSV | hsv(279, 39%, 98%) |
| CMYK | cmyk(14%, 39.2%, 0%, 2%) |
| CIE-LAB | lab(72.10, 40.69, -39.82) |
| CIE-LCH | lch(72.10, 56.93, 315.62°) |
| OKLab | oklab(77.59% 0.1018 -0.11) |
| OKLCH | oklch(77.59% 0.15 312.8) |
| XYZ | xyz(56.5050, 43.8067, 95.9029) |
| Luminance | 0.4381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.75
Lilac (survey)
#CEA2FD
ΔE00 3.47
Pastel Purple
#CAA0FF
ΔE00 3.92
Lavender (survey)
#C79FEF
ΔE00 4.14
Liliac
#C48EFD
ΔE00 4.64
Mauve
#E0B0FF
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D798FA #BBFA98
analogous
#A698FA #D798FA #FA98EC
triadic
#D798FA #FAD798 #98FAD7
tetradic
#D798FA #FAA698 #BBFA98 #98ECFA
square
#D798FA #FAA698 #BBFA98 #98ECFA
split-complementary
#D798FA #ECFA98 #98FAA6
monochromatic
#AA23F4 #C05EF7 #D798FA #EED2FD #F4E2FE
Accessibility & contrast
On white
2.15
#D798FA on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.76
#D798FA on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D798FA
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D798FA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D798FA | 1.00 | 2.15 | 9.76 | 9.76 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86ADFE
Deuteranopia (green-blind)
#95B2F7
Tritanopia (blue-blind)
#D4A6BD
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #d798fa; /* rgb */ color: rgb(215, 152, 250); /* oklch */ color: oklch(77.6% 0.150 312.8);
Tailwind
colors: {
custom: {
50: '#e5b7fc',
500: '#d798fa',
950: '#000000',
},
}SCSS
$custom: #d798fa; $custom-light: #e5b7fc; $custom-dark: #000000;
JSON
{
"hex": "#d798fa",
"rgb": {
"r": 215,
"g": 152,
"b": 250
},
"hsl": {
"h": 278.571,
"s": 90.741,
"l": 78.824
},
"oklch": {
"l": 0.77589,
"c": 0.14986,
"h": 312.8
},
"luminance": 0.43806
}Semantic roles & 50–950 ramp
primary
#D798FA
secondary
#E1F6D5
accent
#E60052
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085