#D998F0#D998F0
#D998F0 is a light, vivid purple. Relative luminance 0.435; OKLCH L 77.3% C 0.140 H 317.0°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #D998F0 |
|---|---|
| RGB | rgb(217, 152, 240) |
| HSL | hsl(284, 75%, 77%) |
| HSV | hsv(284, 37%, 94%) |
| CMYK | cmyk(9.6%, 36.7%, 0%, 5.9%) |
| CIE-LAB | lab(71.89, 39.24, -34.68) |
| CIE-LCH | lch(71.89, 52.37, 318.53°) |
| OKLab | oklab(77.35% 0.102 -0.0952) |
| OKLCH | oklch(77.35% 0.14 317) |
| XYZ | xyz(55.5694, 43.5008, 87.8904) |
| Luminance | 0.4350 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 4.00
Lavender (survey)
#C79FEF
ΔE00 4.47
Lilac (survey)
#CEA2FD
ΔE00 4.67
Pastel Purple
#CAA0FF
ΔE00 5.40
Plum
#DDA0DD
ΔE00 5.64
Mauve
#E0B0FF
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D998F0 #AFF098
analogous
#AD98F0 #D998F0 #F098DB
triadic
#D998F0 #F0D998 #98F0D9
tetradic
#D998F0 #F0AD98 #AFF098 #98DBF0
square
#D998F0 #F0AD98 #AFF098 #98DBF0
split-complementary
#D998F0 #DBF098 #98F0AD
monochromatic
#B22DE0 #C563E8 #D998F0 #EDCDF8 #F5E4FB
Accessibility & contrast
On white
2.16
#D998F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.70
#D998F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D998F0
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D998F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D998F0 | 1.00 | 2.16 | 9.70 | 9.70 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8BACF3
Deuteranopia (green-blind)
#9BB2ED
Tritanopia (blue-blind)
#D9A3B9
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d998f0; /* rgb */ color: rgb(217, 152, 240); /* oklch */ color: oklch(77.3% 0.140 317.0);
Tailwind
colors: {
custom: {
50: '#e6b7f5',
500: '#d998f0',
950: '#000000',
},
}SCSS
$custom: #d998f0; $custom-light: #e6b7f5; $custom-dark: #000000;
JSON
{
"hex": "#d998f0",
"rgb": {
"r": 217,
"g": 152,
"b": 240
},
"hsl": {
"h": 284.318,
"s": 74.576,
"l": 76.863
},
"oklch": {
"l": 0.77345,
"c": 0.13954,
"h": 317
},
"luminance": 0.43499
}Semantic roles & 50–950 ramp
primary
#D998F0
secondary
#DFF3D8
accent
#D70F43
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085