#512486
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 | #512486 | |
| RGB | rgb(81 36 134) | |
| HSL | hsl(267.55 57.65% 33.33%) | |
| OKLCH | oklch(0.38 0.15 300.01) | |
| CMYK | cmyk(39.55% 73.13% 0% 47.45%) | |
| Android | #ff512486 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
10.78:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.94: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="#512486"
Gradient stop
<stop stop-color="#512486"/>
CSS variable + fill
:root { --c: #512486; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #512486; background-color: #512486; bg-[#512486]