Skip to content

#cab921

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

RGB
202, 185, 33
HSL
54°, 72%, 46%
CMYK
0, 8, 84, 21
Luminance
0.4736

Every format

HEX#cab921
RGBrgb(202, 185, 33)
HSLhsl(54, 72%, 46%)
CMYKcmyk(0%, 8%, 84%, 21%)
LABlab(74.4 -9.0 70.9)
LCHlch(74.4 71.4 97.2)
OKLCHoklch(0.776 0.155 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cab921 on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#cab921 on black: 10.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green72.5%
Blue12.9%

CMYK percentages

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

Color previews

#cab921 text on a black background

contrast 10.47:1

Card sample

#cab921 text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cab921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cab921 in the Color Lab