#d786fd
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #d786fd | |
| RGB | rgb(215 134 253) | |
| HSL | hsl(280.84 96.75% 75.88%) | |
| OKLCH | oklch(0.75 0.18 314.12) | |
| CMYK | cmyk(15.02% 47.04% 0% 0.78%) | |
| Android | #ffd786fd |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.40:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
8.71:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#d786fd"
Gradient stop
<stop stop-color="#d786fd"/>
CSS variable + fill
:root { --c: #d786fd; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #d786fd; background-color: #d786fd; bg-[#d786fd]