Skip to content

#cac721

a balanced, vivid yellow · cool · closest name: gold

RGB
202, 199, 33
HSL
59°, 72%, 46%
CMYK
0, 2, 84, 21
Luminance
0.5351

Every format

HEX#cac721
RGBrgb(202, 199, 33)
HSLhsl(59, 72%, 46%)
CMYKcmyk(0%, 2%, 84%, 21%)
LABlab(78.2 -16.1 74.0)
LCHlch(78.2 75.7 102.3)
OKLCHoklch(0.806 0.167 108.5)

Copy-ready code

/* CSS */
color: #cac721;
background-color: #cac721;
/* Tailwind (arbitrary) */
class="text-[#cac721] bg-[#cac721]"
/* SCSS */
$brand: #cac721;
/* SwiftUI */
Color(red: 0.792, green: 0.780, blue: 0.129)
/* Android */
Color.parseColor("#cac721")

Accessibility — WCAG contrast

Aa
#cac721 on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#cac721 on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green78.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow83.7%
Key (black)20.8%

Color previews

#cac721 text on a black background

contrast 11.70:1

Card sample

#cac721 text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #cac721;
Background color
Panel with #cac721 background
background-color: #cac721;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #cac721;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(202, 199, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 199, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cac721;
background: linear-gradient(135deg, #cac721, #5CCA21);

Monochromatic scale

Palettes built from #cac721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cac721 in the Color Lab