Skip to content

#ca9c21

a balanced, vivid yellow · warm · closest name: peru

RGB
202, 156, 33
HSL
44°, 72%, 46%
CMYK
0, 23, 84, 21
Luminance
0.3644

Every format

HEX#ca9c21
RGBrgb(202, 156, 33)
HSLhsl(44, 72%, 46%)
CMYKcmyk(0%, 23%, 84%, 21%)
LABlab(66.9 6.3 64.5)
LCHlch(66.9 64.8 84.4)
OKLCHoklch(0.717 0.138 85.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ca9c21 on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#ca9c21 on black: 8.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green61.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta22.8%
Yellow83.7%
Key (black)20.8%

Color previews

#ca9c21 text on a black background

contrast 8.29:1

Card sample

#ca9c21 text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ca9c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ca9c21 in the Color Lab