#D397FE#D397FE
#D397FE is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.2% C 0.155 H 310.0°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #D397FE |
|---|---|
| RGB | rgb(211, 151, 254) |
| HSL | hsl(275, 98%, 79%) |
| HSV | hsv(275, 41%, 100%) |
| CMYK | cmyk(16.9%, 40.6%, 0%, 0.4%) |
| CIE-LAB | lab(71.65, 40.91, -42.72) |
| CIE-LCH | lch(71.65, 59.15, 313.76°) |
| OKLab | oklab(77.21% 0.0993 -0.1184) |
| OKLCH | oklch(77.21% 0.155 310) |
| XYZ | xyz(55.8167, 43.1387, 99.1329) |
| Luminance | 0.4314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.28
Lilac (survey)
#CEA2FD
ΔE00 3.17
Pastel Purple
#CAA0FF
ΔE00 3.21
Liliac
#C48EFD
ΔE00 3.49
Lavender (survey)
#C79FEF
ΔE00 4.18
Mauve
#E0B0FF
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D397FE #C2FE97
analogous
#A097FE #D397FE #FE97F6
triadic
#D397FE #FED397 #97FED3
tetradic
#D397FE #FEA097 #C2FE97 #97F6FE
square
#D397FE #FEA097 #C2FE97 #97F6FE
split-complementary
#D397FE #F6FE97 #97FEA0
monochromatic
#A01EFD #B95AFD #D397FE #EDD4FF #F2E1FF
Accessibility & contrast
On white
2.18
#D397FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#D397FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D397FE
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D397FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D397FE | 1.00 | 2.18 | 9.63 | 9.63 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#90B1FB
Tritanopia (blue-blind)
#CEA6BF
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #d397fe; /* rgb */ color: rgb(211, 151, 254); /* oklch */ color: oklch(77.2% 0.155 310.0);
Tailwind
colors: {
custom: {
50: '#e2b6ff',
500: '#d397fe',
950: '#000000',
},
}SCSS
$custom: #d397fe; $custom-light: #e2b6ff; $custom-dark: #000000;
JSON
{
"hex": "#d397fe",
"rgb": {
"r": 211,
"g": 151,
"b": 254
},
"hsl": {
"h": 274.951,
"s": 98.095,
"l": 79.412
},
"oklch": {
"l": 0.77214,
"c": 0.15458,
"h": 310
},
"luminance": 0.43138
}Semantic roles & 50–950 ramp
primary
#D397FE
secondary
#E3F7D4
accent
#E60060
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086