#d31faa
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 | #d31faa | |
| RGB | rgb(211 31 170) | |
| HSL | hsl(313.67 74.38% 47.45%) | |
| OKLCH | oklch(0.59 0.24 340.15) | |
| CMYK | cmyk(0% 85.31% 19.43% 17.25%) | |
| Android | #ffd31faa |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.61:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.54:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#d31faa"
Gradient stop
<stop stop-color="#d31faa"/>
CSS variable + fill
:root { --c: #d31faa; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #d31faa; background-color: #d31faa; bg-[#d31faa]