Skip to content
Vectorlight.net

#afb840

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

HEX
#afb840
RGB
175, 184, 64
HSL
64.5°, 48.39%, 48.63%
OKLCH
0.75 0.14 113.43
Names
—
Lists

Codes

FormatValue
HEX#afb840
RGBrgb(175 184 64)
HSLhsl(64.5 48.39% 48.63%)
OKLCHoklch(0.75 0.14 113.43)
CMYKcmyk(4.89% 0% 65.22% 27.84%)
Android#ffafb840

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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