#401262
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 | #401262 | |
| RGB | rgb(64 18 98) | |
| HSL | hsl(274.5 68.97% 22.75%) | |
| OKLCH | oklch(0.31 0.13 305.92) | |
| CMYK | cmyk(34.69% 81.63% 0% 61.57%) | |
| Android | #ff401262 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
14.18:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.48: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="#401262"
Gradient stop
<stop stop-color="#401262"/>
CSS variable + fill
:root { --c: #401262; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #401262; background-color: #401262; bg-[#401262]