#508c4a
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 | #508c4a | |
| RGB | rgb(80 140 74) | |
| HSL | hsl(114.55 30.84% 41.96%) | |
| OKLCH | oklch(0.58 0.12 142.04) | |
| CMYK | cmyk(42.86% 0% 47.14% 45.1%) | |
| Android | #ff508c4a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.04:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.19:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#508c4a"
Gradient stop
<stop stop-color="#508c4a"/>
CSS variable + fill
:root { --c: #508c4a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #508c4a; background-color: #508c4a; bg-[#508c4a]