#afcc51
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 | #afcc51 | |
| RGB | rgb(175 204 81) | |
| HSL | hsl(74.15 54.67% 55.88%) | |
| OKLCH | oklch(0.8 0.15 121.15) | |
| CMYK | cmyk(14.22% 0% 60.29% 20%) | |
| Android | #ffafcc51 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
1.81:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
11.57: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="#afcc51"
Gradient stop
<stop stop-color="#afcc51"/>
CSS variable + fill
:root { --c: #afcc51; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #afcc51; background-color: #afcc51; bg-[#afcc51]