Skip to content

#caaf21

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

RGB
202, 175, 33
HSL
50°, 72%, 46%
CMYK
0, 13, 84, 21
Luminance
0.4333

Every format

HEX#caaf21
RGBrgb(202, 175, 33)
HSLhsl(50, 72%, 46%)
CMYKcmyk(0%, 13%, 84%, 21%)
LABlab(71.8 -3.8 68.7)
LCHlch(71.8 68.8 93.1)
OKLCHoklch(0.755 0.148 97.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#caaf21 on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#caaf21 on black: 9.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green68.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta13.4%
Yellow83.7%
Key (black)20.8%

Color previews

#caaf21 text on a black background

contrast 9.67:1

Card sample

#caaf21 text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #caaf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #caaf21 in the Color Lab