#D397FD#D397FD
#D397FD is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.2% C 0.153 H 310.3°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #D397FD |
|---|---|
| RGB | rgb(211, 151, 253) |
| HSL | hsl(275, 96%, 79%) |
| HSV | hsv(275, 40%, 99%) |
| CMYK | cmyk(16.6%, 40.3%, 0%, 0.8%) |
| CIE-LAB | lab(71.61, 40.70, -42.25) |
| CIE-LCH | lch(71.61, 58.66, 313.93°) |
| OKLab | oklab(77.17% 0.0992 -0.1171) |
| OKLCH | oklch(77.17% 0.153 310.3) |
| XYZ | xyz(55.6570, 43.0748, 98.2917) |
| Luminance | 0.4307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.23
Lilac (survey)
#CEA2FD
ΔE00 3.16
Pastel Purple
#CAA0FF
ΔE00 3.25
Liliac
#C48EFD
ΔE00 3.57
Lavender (survey)
#C79FEF
ΔE00 4.09
Mauve
#E0B0FF
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D397FD #C1FD97
analogous
#A097FD #D397FD #FD97F4
triadic
#D397FD #FDD397 #97FDD3
tetradic
#D397FD #FDA097 #C1FD97 #97F4FD
square
#D397FD #FDA097 #C1FD97 #97F4FD
split-complementary
#D397FD #F4FD97 #97FDA0
monochromatic
#A01FFB #BA5BFC #D397FD #ECD3FE #F2E1FE
Accessibility & contrast
On white
2.18
#D397FD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.61
#D397FD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D397FD
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D397FD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D397FD | 1.00 | 2.18 | 9.61 | 9.61 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#91B1FA
Tritanopia (blue-blind)
#CEA6BE
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #d397fd; /* rgb */ color: rgb(211, 151, 253); /* oklch */ color: oklch(77.2% 0.153 310.3);
Tailwind
colors: {
custom: {
50: '#e2b6fe',
500: '#d397fd',
950: '#000000',
},
}SCSS
$custom: #d397fd; $custom-light: #e2b6fe; $custom-dark: #000000;
JSON
{
"hex": "#d397fd",
"rgb": {
"r": 211,
"g": 151,
"b": 253
},
"hsl": {
"h": 275.294,
"s": 96.226,
"l": 79.216
},
"oklch": {
"l": 0.77167,
"c": 0.15341,
"h": 310.3
},
"luminance": 0.43074
}Semantic roles & 50–950 ramp
primary
#D397FD
secondary
#E2F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086