#D397FC#D397FC
#D397FC is a light, vivid violet. Relative luminance 0.430; OKLCH L 77.1% C 0.152 H 310.5°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #D397FC |
|---|---|
| RGB | rgb(211, 151, 252) |
| HSL | hsl(276, 94%, 79%) |
| HSV | hsv(276, 40%, 99%) |
| CMYK | cmyk(16.3%, 40.1%, 0%, 1.2%) |
| CIE-LAB | lab(71.56, 40.49, -41.77) |
| CIE-LCH | lch(71.56, 58.17, 314.10°) |
| OKLab | oklab(77.12% 0.099 -0.1157) |
| OKLCH | oklch(77.12% 0.152 310.5) |
| XYZ | xyz(55.4981, 43.0112, 97.4549) |
| Luminance | 0.4301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.20
Lilac (survey)
#CEA2FD
ΔE00 3.16
Pastel Purple
#CAA0FF
ΔE00 3.30
Liliac
#C48EFD
ΔE00 3.66
Lavender (survey)
#C79FEF
ΔE00 4.01
Mauve
#E0B0FF
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D397FC #C0FC97
analogous
#A197FC #D397FC #FC97F2
triadic
#D397FC #FCD397 #97FCD3
tetradic
#D397FC #FCA197 #C0FC97 #97F2FC
square
#D397FC #FCA197 #C0FC97 #97F2FC
split-complementary
#D397FC #F2FC97 #97FCA1
monochromatic
#A120F9 #BA5CFA #D397FC #ECD2FE #F2E1FE
Accessibility & contrast
On white
2.19
#D397FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.60
#D397FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D397FC
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D397FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D397FC | 1.00 | 2.19 | 9.60 | 9.60 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83ACFF
Deuteranopia (green-blind)
#91B0F9
Tritanopia (blue-blind)
#CEA6BE
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #d397fc; /* rgb */ color: rgb(211, 151, 252); /* oklch */ color: oklch(77.1% 0.152 310.5);
Tailwind
colors: {
custom: {
50: '#e2b6fd',
500: '#d397fc',
950: '#000000',
},
}SCSS
$custom: #d397fc; $custom-light: #e2b6fd; $custom-dark: #000000;
JSON
{
"hex": "#d397fc",
"rgb": {
"r": 211,
"g": 151,
"b": 252
},
"hsl": {
"h": 275.644,
"s": 94.393,
"l": 79.02
},
"oklch": {
"l": 0.7712,
"c": 0.15224,
"h": 310.5
},
"luminance": 0.4301
}Semantic roles & 50–950 ramp
primary
#D397FC
secondary
#E2F6D5
accent
#E6005D
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#151118
muted
#848086