Skip to content

#caba21

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

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

Every format

HEX#caba21
RGBrgb(202, 186, 33)
HSLhsl(54, 72%, 46%)
CMYKcmyk(0%, 8%, 84%, 21%)
LABlab(74.7 -9.5 71.1)
LCHlch(74.7 71.7 97.6)
OKLCHoklch(0.779 0.156 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#caba21 on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#caba21 on black: 10.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow83.7%
Key (black)20.8%

Color previews

#caba21 text on a black background

contrast 10.56:1

Card sample

#caba21 text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #caba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #caba21 in the Color Lab