#40157a
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 | #40157a | |
| RGB | rgb(64 21 122) | |
| HSL | hsl(265.54 70.63% 28.04%) | |
| OKLCH | oklch(0.33 0.16 295.79) | |
| CMYK | cmyk(47.54% 82.79% 0% 52.16%) | |
| Android | #ff40157a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
13.07:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.60: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="#40157a"
Gradient stop
<stop stop-color="#40157a"/>
CSS variable + fill
:root { --c: #40157a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #40157a; background-color: #40157a; bg-[#40157a]