#afc304
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 | #afc304 | |
| RGB | rgb(175 195 4) | |
| HSL | hsl(66.28 95.98% 39.02%) | |
| OKLCH | oklch(0.77 0.18 116.94) | |
| CMYK | cmyk(10.26% 0% 97.95% 23.53%) | |
| Android | #ffafc304 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
1.97:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
10.63: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="#afc304"
Gradient stop
<stop stop-color="#afc304"/>
CSS variable + fill
:root { --c: #afc304; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #afc304; background-color: #afc304; bg-[#afc304]