#540252
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 | #540252 | |
| RGB | rgb(84 2 82) | |
| HSL | hsl(301.46 95.35% 16.86%) | |
| OKLCH | oklch(0.31 0.14 329.52) | |
| CMYK | cmyk(0% 97.62% 2.38% 67.06%) | |
| Android | #ff540252 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
13.93:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.50: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="#540252"
Gradient stop
<stop stop-color="#540252"/>
CSS variable + fill
:root { --c: #540252; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #540252; background-color: #540252; bg-[#540252]