#ff408b
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 | #ff408b | |
| RGB | rgb(255 64 139) | |
| HSL | hsl(336.44 100% 62.55%) | |
| OKLCH | oklch(0.67 0.23 2.23) | |
| CMYK | cmyk(0% 74.9% 45.49% 0%) | |
| Android | #ffff408b |
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.35: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="#ff408b"
Gradient stop
<stop stop-color="#ff408b"/>
CSS variable + fill
:root { --c: #ff408b; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ff408b; background-color: #ff408b; bg-[#ff408b]