#D397F2#D397F2
#D397F2 is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.141 H 313.6°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #D397F2 |
|---|---|
| RGB | rgb(211, 151, 242) |
| HSL | hsl(280, 78%, 77%) |
| HSV | hsv(280, 38%, 95%) |
| CMYK | cmyk(12.8%, 37.6%, 0%, 5.1%) |
| CIE-LAB | lab(71.14, 38.39, -36.98) |
| CIE-LCH | lch(71.14, 53.31, 316.07°) |
| OKLab | oklab(76.66% 0.097 -0.1019) |
| OKLCH | oklch(76.66% 0.141 313.6) |
| XYZ | xyz(53.9550, 42.3940, 89.3277) |
| Luminance | 0.4239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.68
Lavender (survey)
#C79FEF
ΔE00 3.57
Lilac (survey)
#CEA2FD
ΔE00 3.71
Pastel Purple
#CAA0FF
ΔE00 4.23
Liliac
#C48EFD
ΔE00 4.91
Mauve
#E0B0FF
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D397F2 #B6F297
analogous
#A597F2 #D397F2 #F297E4
triadic
#D397F2 #F2D397 #97F2D3
tetradic
#D397F2 #F2A597 #B6F297 #97E4F2
square
#D397F2 #F2A597 #B6F297 #97E4F2
split-complementary
#D397F2 #E4F297 #97F2A5
monochromatic
#A52AE4 #BC61EB #D397F2 #EACDF9 #F3E4FC
Accessibility & contrast
On white
2.22
#D397F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.48
#D397F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D397F2
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D397F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D397F2 | 1.00 | 2.22 | 9.48 | 9.48 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#96B0EF
Tritanopia (blue-blind)
#D1A3B9
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #d397f2; /* rgb */ color: rgb(211, 151, 242); /* oklch */ color: oklch(76.7% 0.141 313.6);
Tailwind
colors: {
custom: {
50: '#e2b6f6',
500: '#d397f2',
950: '#000000',
},
}SCSS
$custom: #d397f2; $custom-light: #e2b6f6; $custom-dark: #000000;
JSON
{
"hex": "#d397f2",
"rgb": {
"r": 211,
"g": 151,
"b": 242
},
"hsl": {
"h": 279.56,
"s": 77.778,
"l": 77.059
},
"oklch": {
"l": 0.76664,
"c": 0.14069,
"h": 313.6
},
"luminance": 0.42393
}Semantic roles & 50–950 ramp
primary
#D397F2
secondary
#E1F3D8
accent
#DA0B52
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085