#D97AF2#D97AF2
#D97AF2 is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.8% C 0.191 H 319.0°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #D97AF2 |
|---|---|
| RGB | rgb(217, 122, 242) |
| HSL | hsl(288, 82%, 71%) |
| HSV | hsv(288, 50%, 95%) |
| CMYK | cmyk(10.3%, 49.6%, 0%, 5.1%) |
| CIE-LAB | lab(65.81, 55.24, -45.27) |
| CIE-LCH | lch(65.81, 71.42, 320.67°) |
| OKLab | oklab(72.82% 0.1442 -0.1255) |
| OKLCH | oklch(72.82% 0.191 319) |
| XYZ | xyz(51.5997, 35.0835, 88.0409) |
| Luminance | 0.3508 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.77
Orchid
#DA70D6
ΔE00 5.08
Purply Pink
#F075E6
ΔE00 5.14
Light Purple
#BF77F6
ΔE00 5.24
Violet Pink
#FB5FFC
ΔE00 5.90
Light Magenta
#FA5FF7
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D97AF2 #93F27A
analogous
#9D7AF2 #D97AF2 #F27ACF
triadic
#D97AF2 #F2D97A #7AF2D9
tetradic
#D97AF2 #F29D7A #93F27A #7ACFF2
square
#D97AF2 #F29D7A #93F27A #7ACFF2
split-complementary
#D97AF2 #CFF27A #7AF29D
monochromatic
#B316DC #C942ED #D97AF2 #E9B2F7 #F7E3FC
Accessibility & contrast
On white
2.62
#D97AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.02
#D97AF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D97AF2
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D97AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D97AF2 | 1.00 | 2.62 | 8.02 | 8.02 |
| #FFFFFF | 2.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#81A3EF
Tritanopia (blue-blind)
#DA8BAB
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #d97af2; /* rgb */ color: rgb(217, 122, 242); /* oklch */ color: oklch(72.8% 0.191 319.0);
Tailwind
colors: {
custom: {
50: '#e7a3f7',
500: '#d97af2',
950: '#000000',
},
}SCSS
$custom: #d97af2; $custom-light: #e7a3f7; $custom-dark: #000000;
JSON
{
"hex": "#d97af2",
"rgb": {
"r": 217,
"g": 122,
"b": 242
},
"hsl": {
"h": 287.5,
"s": 82.192,
"l": 71.373
},
"oklch": {
"l": 0.72825,
"c": 0.19116,
"h": 319
},
"luminance": 0.35082
}Semantic roles & 50–950 ramp
primary
#D97AF2
secondary
#DBF3D4
accent
#DF0734
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85