Skip to content

#caaa2f

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

RGB
202, 170, 47
HSL
48°, 62%, 49%
CMYK
0, 16, 77, 21
Luminance
0.4151

Every format

HEX#caaa2f
RGBrgb(202, 170, 47)
HSLhsl(48, 62%, 49%)
CMYKcmyk(0%, 16%, 77%, 21%)
LABlab(70.5 -0.7 63.3)
LCHlch(70.5 63.3 90.6)
OKLCHoklch(0.746 0.139 93.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#caaa2f on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#caaa2f on black: 9.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green66.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta15.8%
Yellow76.7%
Key (black)20.8%

Color previews

#caaa2f text on a black background

contrast 9.30:1

Card sample

#caaa2f text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 170, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 170, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #caaa2f;
background: linear-gradient(135deg, #caaa2f, #83CA2F);

Monochromatic scale

Palettes built from #caaa2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #caaa2f in the Color Lab