#642f71
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 | #642f71 | |
| RGB | rgb(100 47 113) | |
| HSL | hsl(288.18 41.25% 31.37%) | |
| OKLCH | oklch(0.4 0.12 319.38) | |
| CMYK | cmyk(11.5% 58.41% 0% 55.69%) | |
| Android | #ff642f71 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
9.60:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.18:1
Fail AA normal text
Fail 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="#642f71"
Gradient stop
<stop stop-color="#642f71"/>
CSS variable + fill
:root { --c: #642f71; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #642f71; background-color: #642f71; bg-[#642f71]