Skip to content
Vectorlight.net

#afd228

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

HEX
#afd228
RGB
175, 210, 40
HSL
72.35°, 68%, 49.02%
OKLCH
0.81 0.18 121.43
Names
—
Lists

Codes

FormatValue
HEX#afd228
RGBrgb(175 210 40)
HSLhsl(72.35 68% 49.02%)
OKLCHoklch(0.81 0.18 121.43)
CMYKcmyk(16.67% 0% 80.95% 17.65%)
Android#ffafd228

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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