#D17AFD#D17AFD
#D17AFD is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.5% C 0.199 H 313.1°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).
Color values
| HEX | #D17AFD |
|---|---|
| RGB | rgb(209, 122, 253) |
| HSL | hsl(280, 97%, 74%) |
| HSV | hsv(280, 52%, 99%) |
| CMYK | cmyk(17.4%, 51.8%, 0%, 0.8%) |
| CIE-LAB | lab(65.41, 55.34, -52.01) |
| CIE-LCH | lch(65.41, 75.95, 316.78°) |
| OKLab | oklab(72.5% 0.136 -0.1452) |
| OKLCH | oklch(72.5% 0.199 313.1) |
| XYZ | xyz(50.9806, 34.5675, 96.8961) |
| Luminance | 0.3457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.21
Easter Purple
#C071FE
ΔE00 3.87
Liliac
#C48EFD
ΔE00 5.20
Bright Lavender
#C760FF
ΔE00 5.81
Bright Lilac
#C95EFB
ΔE00 5.97
Light Urple
#B36FF6
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D17AFD #A6FD7A
analogous
#8F7AFD #D17AFD #FD7AE8
triadic
#D17AFD #FDD17A #7AFDD1
tetradic
#D17AFD #FD8F7A #A6FD7A #7AE8FD
square
#D17AFD #FD8F7A #A6FD7A #7AE8FD
split-complementary
#D17AFD #E8FD7A #7AFD8F
monochromatic
#A704F9 #BC3EFC #D17AFD #E6B6FE #F5E1FF
Accessibility & contrast
On white
2.65
#D17AFD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.91
#D17AFD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D17AFD
7.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D17AFD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D17AFD | 1.00 | 2.65 | 7.91 | 7.91 |
| #FFFFFF | 2.65 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#75A1FA
Tritanopia (blue-blind)
#CD8FB0
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #d17afd; /* rgb */ color: rgb(209, 122, 253); /* oklch */ color: oklch(72.5% 0.199 313.1);
Tailwind
colors: {
custom: {
50: '#e2a3fe',
500: '#d17afd',
950: '#000000',
},
}SCSS
$custom: #d17afd; $custom-light: #e2a3fe; $custom-dark: #000000;
JSON
{
"hex": "#d17afd",
"rgb": {
"r": 209,
"g": 122,
"b": 253
},
"hsl": {
"h": 279.847,
"s": 97.037,
"l": 73.529
},
"oklch": {
"l": 0.72497,
"c": 0.19899,
"h": 313.1
},
"luminance": 0.34566
}Semantic roles & 50–950 ramp
primary
#D17AFD
secondary
#E0F7D4
accent
#E6004D
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86