Skip to content
Vectorlight.net

#cfa402

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

HEX
#cfa402
RGB
207, 164, 2
HSL
47.41°, 98.09%, 40.98%
OKLCH
0.74 0.15 89.7
Names
—
Lists

Codes

FormatValue
HEX#cfa402
RGBrgb(207 164 2)
HSLhsl(47.41 98.09% 40.98%)
OKLCHoklch(0.74 0.15 89.7)
CMYKcmyk(0% 20.77% 99.03% 18.82%)
Android#ffcfa402

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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