#D97AF0#D97AF0
#D97AF0 is a light, vivid purple. Relative luminance 0.350; OKLCH L 72.7% C 0.189 H 319.6°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #D97AF0 |
|---|---|
| RGB | rgb(217, 122, 240) |
| HSL | hsl(288, 80%, 71%) |
| HSV | hsv(288, 49%, 94%) |
| CMYK | cmyk(9.6%, 49.2%, 0%, 5.9%) |
| CIE-LAB | lab(65.72, 54.85, -44.31) |
| CIE-LCH | lch(65.72, 70.52, 321.07°) |
| OKLab | oklab(72.73% 0.144 -0.1227) |
| OKLCH | oklch(72.73% 0.189 319.6) |
| XYZ | xyz(51.3010, 34.9640, 86.4676) |
| Luminance | 0.3496 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.60
Orchid
#DA70D6
ΔE00 4.77
Purply Pink
#F075E6
ΔE00 4.92
Light Purple
#BF77F6
ΔE00 5.42
Light Magenta
#FA5FF7
ΔE00 5.88
Violet Pink
#FB5FFC
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97AF0 #91F07A
analogous
#9E7AF0 #D97AF0 #F07ACC
triadic
#D97AF0 #F0D97A #7AF0D9
tetradic
#D97AF0 #F09E7A #91F07A #7ACCF0
square
#D97AF0 #F09E7A #91F07A #7ACCF0
split-complementary
#D97AF0 #CCF07A #7AF09E
monochromatic
#B218D7 #C943EA #D97AF0 #E9B1F6 #F7E4FC
Accessibility & contrast
On white
2.63
#D97AF0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.99
#D97AF0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97AF0
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97AF0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97AF0 | 1.00 | 2.63 | 7.99 | 7.99 |
| #FFFFFF | 2.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6699F4
Deuteranopia (green-blind)
#82A3ED
Tritanopia (blue-blind)
#DA8AAA
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #d97af0; /* rgb */ color: rgb(217, 122, 240); /* oklch */ color: oklch(72.7% 0.189 319.6);
Tailwind
colors: {
custom: {
50: '#e7a3f5',
500: '#d97af0',
950: '#000000',
},
}SCSS
$custom: #d97af0; $custom-light: #e7a3f5; $custom-dark: #000000;
JSON
{
"hex": "#d97af0",
"rgb": {
"r": 217,
"g": 122,
"b": 240
},
"hsl": {
"h": 288.305,
"s": 79.73,
"l": 70.98
},
"oklch": {
"l": 0.72726,
"c": 0.18918,
"h": 319.6
},
"luminance": 0.34962
}Semantic roles & 50–950 ramp
primary
#D97AF0
secondary
#D9F3D3
accent
#DC0933
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85