#D786F7#D786F7
#D786F7 is a light, vivid purple. Relative luminance 0.382; OKLCH L 74.6% C 0.176 H 315.8°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #D786F7 |
|---|---|
| RGB | rgb(215, 134, 247) |
| HSL | hsl(283, 88%, 75%) |
| HSV | hsv(283, 46%, 97%) |
| CMYK | cmyk(13%, 45.7%, 0%, 3.1%) |
| CIE-LAB | lab(68.18, 49.57, -44.31) |
| CIE-LCH | lch(68.18, 66.49, 318.21°) |
| OKLab | oklab(74.61% 0.1263 -0.1228) |
| OKLCH | oklch(74.61% 0.176 315.8) |
| XYZ | xyz(53.3354, 38.2142, 92.5441) |
| Luminance | 0.3821 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.58
Violet (CSS)
#EE82EE
ΔE00 4.99
Light Purple
#BF77F6
ΔE00 5.78
Baby Purple
#CA9BF7
ΔE00 5.89
Purply Pink
#F075E6
ΔE00 6.51
Lavender Pink
#DD85D7
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786F7 #A6F786
analogous
#9F86F7 #D786F7 #F786DE
triadic
#D786F7 #F7D786 #86F7D7
tetradic
#D786F7 #F79F86 #A6F786 #86DEF7
square
#D786F7 #F79F86 #A6F786 #86DEF7
split-complementary
#D786F7 #DEF786 #86F79F
monochromatic
#B113EF #C44DF3 #D786F7 #EABFFB #F6E2FD
Accessibility & contrast
On white
2.43
#D786F7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.64
#D786F7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786F7
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786F7 | 1.00 | 2.43 | 8.64 | 8.64 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#71A1FB
Deuteranopia (green-blind)
#87A9F4
Tritanopia (blue-blind)
#D596B3
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d786f7; /* rgb */ color: rgb(215, 134, 247); /* oklch */ color: oklch(74.6% 0.176 315.8);
Tailwind
colors: {
custom: {
50: '#e5abfa',
500: '#d786f7',
950: '#000000',
},
}SCSS
$custom: #d786f7; $custom-light: #e5abfa; $custom-dark: #000000;
JSON
{
"hex": "#d786f7",
"rgb": {
"r": 215,
"g": 134,
"b": 247
},
"hsl": {
"h": 283.009,
"s": 87.597,
"l": 74.706
},
"oklch": {
"l": 0.74606,
"c": 0.17619,
"h": 315.8
},
"luminance": 0.38213
}Semantic roles & 50–950 ramp
primary
#D786F7
secondary
#DFF5D6
accent
#E40142
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85