#508e18
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 | #508e18 | |
| RGB | rgb(80 142 24) | |
| HSL | hsl(91.53 71.08% 32.55%) | |
| OKLCH | oklch(0.58 0.16 134.28) | |
| CMYK | cmyk(43.66% 0% 83.1% 44.31%) | |
| Android | #ff508e18 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.02:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.22: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="#508e18"
Gradient stop
<stop stop-color="#508e18"/>
CSS variable + fill
:root { --c: #508e18; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #508e18; background-color: #508e18; bg-[#508e18]