#d156f4
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 | #d156f4 | |
| RGB | rgb(209 86 244) | |
| HSL | hsl(286.71 87.78% 64.71%) | |
| OKLCH | oklch(0.67 0.24 317.97) | |
| CMYK | cmyk(14.34% 64.75% 0% 4.31%) | |
| Android | #ffd156f4 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.30:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.34: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="#d156f4"
Gradient stop
<stop stop-color="#d156f4"/>
CSS variable + fill
:root { --c: #d156f4; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #d156f4; background-color: #d156f4; bg-[#d156f4]