Skip to content
Vectorlight.net

#ccb52f

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

HEX
#ccb52f
RGB
204, 181, 47
HSL
51.21°, 62.55%, 49.22%
OKLCH
0.77 0.15 98.94
Names
—
Lists

Codes

FormatValue
HEX#ccb52f
RGBrgb(204 181 47)
HSLhsl(51.21 62.55% 49.22%)
OKLCHoklch(0.77 0.15 98.94)
CMYKcmyk(0% 11.27% 76.96% 20%)
Android#ffccb52f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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