Skip to content
Vectorlight.net

#afd40f

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

HEX
#afd40f
RGB
175, 212, 15
HSL
71.27°, 86.78%, 44.51%
OKLCH
0.81 0.19 121.58
Names
—
Lists

Codes

FormatValue
HEX#afd40f
RGBrgb(175 212 15)
HSLhsl(71.27 86.78% 44.51%)
OKLCHoklch(0.81 0.19 121.58)
CMYKcmyk(17.45% 0% 92.92% 16.86%)
Android#ffafd40f

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
1.71:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
12.24: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="#afd40f"
Gradient stop
<stop stop-color="#afd40f"/>
CSS variable + fill
:root { --c: #afd40f; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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