#dc307b
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 | #dc307b | |
| RGB | rgb(220 48 123) | |
| HSL | hsl(333.84 71.07% 52.55%) | |
| OKLCH | oklch(0.6 0.21 0.04) | |
| CMYK | cmyk(0% 78.18% 44.09% 13.73%) | |
| Android | #ffdc307b |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.41:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.75: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="#dc307b"
Gradient stop
<stop stop-color="#dc307b"/>
CSS variable + fill
:root { --c: #dc307b; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #dc307b; background-color: #dc307b; bg-[#dc307b]