Skip to content
Vectorlight.net

#afc304

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#afc304
RGB
175, 195, 4
HSL
66.28°, 95.98%, 39.02%
OKLCH
0.77 0.18 116.94
Names
—
Lists

Codes

FormatValue
HEX#afc304
RGBrgb(175 195 4)
HSLhsl(66.28 95.98% 39.02%)
OKLCHoklch(0.77 0.18 116.94)
CMYKcmyk(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

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#afc304"
Gradient stop
<stop stop-color="#afc304"/>
CSS variable + fill
:root { --c: #afc304; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #afc304;
background-color: #afc304;
bg-[#afc304]