#ec307d
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 | #ec307d | |
| RGB | rgb(236 48 125) | |
| HSL | hsl(335.43 83.19% 55.69%) | |
| OKLCH | oklch(0.63 0.23 2.34) | |
| CMYK | cmyk(0% 79.66% 47.03% 7.45%) | |
| Android | #ffec307d |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.97:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.28: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="#ec307d"
Gradient stop
<stop stop-color="#ec307d"/>
CSS variable + fill
:root { --c: #ec307d; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ec307d; background-color: #ec307d; bg-[#ec307d]