#D781F2#D781F2
#D781F2 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.6% C 0.179 H 317.7°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).
Color values
| HEX | #D781F2 |
|---|---|
| RGB | rgb(215, 129, 242) |
| HSL | hsl(286, 81%, 73%) |
| HSV | hsv(286, 47%, 95%) |
| CMYK | cmyk(11.2%, 46.7%, 0%, 5.1%) |
| CIE-LAB | lab(66.95, 51.15, -43.51) |
| CIE-LCH | lch(66.95, 67.15, 319.62°) |
| OKLab | oklab(73.61% 0.1324 -0.1205) |
| OKLCH | oklch(73.61% 0.179 317.7) |
| XYZ | xyz(51.8994, 36.5601, 88.3101) |
| Luminance | 0.3656 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.58
Light Purple
#BF77F6
ΔE00 5.51
Liliac
#C48EFD
ΔE00 5.51
Purply Pink
#F075E6
ΔE00 5.64
Orchid
#DA70D6
ΔE00 5.80
Lavender Pink
#DD85D7
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D781F2 #9CF281
analogous
#9F81F2 #D781F2 #F281D4
triadic
#D781F2 #F2D781 #81F2D7
tetradic
#D781F2 #F29F81 #9CF281 #81D4F2
square
#D781F2 #F29F81 #9CF281 #81D4F2
split-complementary
#D781F2 #D4F281 #81F29F
monochromatic
#B117E1 #C54AEC #D781F2 #E9B8F8 #F6E3FC
Accessibility & contrast
On white
2.53
#D781F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.31
#D781F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D781F2
8.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D781F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D781F2 | 1.00 | 2.53 | 8.31 | 8.31 |
| #FFFFFF | 2.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D9DF6
Deuteranopia (green-blind)
#85A6EF
Tritanopia (blue-blind)
#D791AE
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #d781f2; /* rgb */ color: rgb(215, 129, 242); /* oklch */ color: oklch(73.6% 0.179 317.7);
Tailwind
colors: {
custom: {
50: '#e5a8f7',
500: '#d781f2',
950: '#000000',
},
}SCSS
$custom: #d781f2; $custom-light: #e5a8f7; $custom-dark: #000000;
JSON
{
"hex": "#d781f2",
"rgb": {
"r": 215,
"g": 129,
"b": 242
},
"hsl": {
"h": 285.664,
"s": 81.295,
"l": 72.745
},
"oklch": {
"l": 0.73614,
"c": 0.17903,
"h": 317.7
},
"luminance": 0.36558
}Semantic roles & 50–950 ramp
primary
#D781F2
secondary
#DEF4D7
accent
#DE083B
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85