#D786F0#D786F0
#D786F0 is a light, vivid purple. Relative luminance 0.378; OKLCH L 74.3% C 0.169 H 317.9°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #D786F0 |
|---|---|
| RGB | rgb(215, 134, 240) |
| HSL | hsl(286, 78%, 73%) |
| HSV | hsv(286, 44%, 94%) |
| CMYK | cmyk(10.4%, 44.2%, 0%, 5.9%) |
| CIE-LAB | lab(67.87, 48.17, -40.96) |
| CIE-LCH | lch(67.87, 63.23, 319.62°) |
| OKLab | oklab(74.27% 0.1252 -0.1132) |
| OKLCH | oklch(74.27% 0.169 317.9) |
| XYZ | xyz(52.2754, 37.7902, 86.9617) |
| Luminance | 0.3779 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.32
Liliac
#C48EFD
ΔE00 5.33
Lavender Pink
#DD85D7
ΔE00 5.37
Purply Pink
#F075E6
ΔE00 5.83
Baby Purple
#CA9BF7
ΔE00 6.09
Orchid
#DA70D6
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786F0 #9FF086
analogous
#A286F0 #D786F0 #F086D4
triadic
#D786F0 #F0D786 #86F0D7
tetradic
#D786F0 #F0A286 #9FF086 #86D4F0
square
#D786F0 #F0A286 #9FF086 #86D4F0
split-complementary
#D786F0 #D4F086 #86F0A2
monochromatic
#B21CE0 #C550E9 #D786F0 #E9BCF7 #F6E4FC
Accessibility & contrast
On white
2.45
#D786F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.56
#D786F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786F0
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786F0 | 1.00 | 2.45 | 8.56 | 8.56 |
| #FFFFFF | 2.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#74A0F4
Deuteranopia (green-blind)
#8AA8ED
Tritanopia (blue-blind)
#D794B0
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #d786f0; /* rgb */ color: rgb(215, 134, 240); /* oklch */ color: oklch(74.3% 0.169 317.9);
Tailwind
colors: {
custom: {
50: '#e5abf5',
500: '#d786f0',
950: '#000000',
},
}SCSS
$custom: #d786f0; $custom-light: #e5abf5; $custom-dark: #000000;
JSON
{
"hex": "#d786f0",
"rgb": {
"r": 215,
"g": 134,
"b": 240
},
"hsl": {
"h": 285.849,
"s": 77.941,
"l": 73.333
},
"oklch": {
"l": 0.74271,
"c": 0.16878,
"h": 317.9
},
"luminance": 0.37789
}Semantic roles & 50–950 ramp
primary
#D786F0
secondary
#DEF3D8
accent
#DA0B3C
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85