#d874ff
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 | #d874ff | |
| RGB | rgb(216 116 255) | |
| HSL | hsl(283.17 100% 72.75%) | |
| OKLCH | oklch(0.73 0.21 315.58) | |
| CMYK | cmyk(15.29% 54.51% 0% 0%) | |
| Android | #ffd874ff |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.67:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
7.86: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="#d874ff"
Gradient stop
<stop stop-color="#d874ff"/>
CSS variable + fill
:root { --c: #d874ff; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #d874ff; background-color: #d874ff; bg-[#d874ff]