#40795e
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 | #40795e | |
| RGB | rgb(64 121 94) | |
| HSL | hsl(151.58 30.81% 36.27%) | |
| OKLCH | oklch(0.53 0.07 161.8) | |
| CMYK | cmyk(47.11% 0% 22.31% 52.55%) | |
| Android | #ff40795e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.10:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.11:1
Fail AA normal text
Pass 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="#40795e"
Gradient stop
<stop stop-color="#40795e"/>
CSS variable + fill
:root { --c: #40795e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #40795e; background-color: #40795e; bg-[#40795e]