#40066a
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 | #40066a | |
| RGB | rgb(64 6 106) | |
| HSL | hsl(274.8 89.29% 21.96%) | |
| OKLCH | oklch(0.3 0.15 303.71) | |
| CMYK | cmyk(39.62% 94.34% 0% 58.43%) | |
| Android | #ff40066a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
14.46:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.45: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="#40066a"
Gradient stop
<stop stop-color="#40066a"/>
CSS variable + fill
:root { --c: #40066a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #40066a; background-color: #40066a; bg-[#40066a]