#D398FD#D398FD
#D398FD is a light, vivid violet. Relative luminance 0.434; OKLCH L 77.3% C 0.152 H 310.1°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #D398FD |
|---|---|
| RGB | rgb(211, 152, 253) |
| HSL | hsl(275, 96%, 79%) |
| HSV | hsv(275, 40%, 99%) |
| CMYK | cmyk(16.6%, 39.9%, 0%, 0.8%) |
| CIE-LAB | lab(71.82, 40.16, -41.91) |
| CIE-LCH | lch(71.82, 58.04, 313.78°) |
| OKLab | oklab(77.33% 0.0978 -0.1161) |
| OKLCH | oklch(77.33% 0.152 310.1) |
| XYZ | xyz(55.8186, 43.3980, 98.3456) |
| Luminance | 0.4340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.07
Lilac (survey)
#CEA2FD
ΔE00 2.93
Pastel Purple
#CAA0FF
ΔE00 3.07
Liliac
#C48EFD
ΔE00 3.72
Lavender (survey)
#C79FEF
ΔE00 3.91
Mauve
#E0B0FF
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D398FD #C2FD98
analogous
#A198FD #D398FD #FD98F4
triadic
#D398FD #FDD398 #98FDD3
tetradic
#D398FD #FDA198 #C2FD98 #98F4FD
square
#D398FD #FDA198 #C2FD98 #98F4FD
split-complementary
#D398FD #F4FD98 #98FDA1
monochromatic
#A020FB #B95CFC #D398FD #EDD4FE #F2E1FE
Accessibility & contrast
On white
2.17
#D398FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.68
#D398FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D398FD
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D398FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D398FD | 1.00 | 2.17 | 9.68 | 9.68 |
| #FFFFFF | 2.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#92B1FA
Tritanopia (blue-blind)
#CEA7BF
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #d398fd; /* rgb */ color: rgb(211, 152, 253); /* oklch */ color: oklch(77.3% 0.152 310.1);
Tailwind
colors: {
custom: {
50: '#e2b7fe',
500: '#d398fd',
950: '#000000',
},
}SCSS
$custom: #d398fd; $custom-light: #e2b7fe; $custom-dark: #000000;
JSON
{
"hex": "#d398fd",
"rgb": {
"r": 211,
"g": 152,
"b": 253
},
"hsl": {
"h": 275.05,
"s": 96.19,
"l": 79.412
},
"oklch": {
"l": 0.77331,
"c": 0.15176,
"h": 310.1
},
"luminance": 0.43397
}Semantic roles & 50–950 ramp
primary
#D398FD
secondary
#E3F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086