Skip to content

#caab21

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

RGB
202, 171, 33
HSL
49°, 72%, 46%
CMYK
0, 15, 84, 21
Luminance
0.4179

Every format

HEX#caab21
RGBrgb(202, 171, 33)
HSLhsl(49, 72%, 46%)
CMYKcmyk(0%, 15%, 84%, 21%)
LABlab(70.7 -1.7 67.8)
LCHlch(70.7 67.8 91.4)
OKLCHoklch(0.747 0.146 95.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#caab21 on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#caab21 on black: 9.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow83.7%
Key (black)20.8%

Color previews

#caab21 text on a black background

contrast 9.36:1

Card sample

#caab21 text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #caab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #caab21 in the Color Lab