Skip to content

#cbca21

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

RGB
203, 202, 33
HSL
60°, 72%, 46%
CMYK
0, 1, 84, 20
Luminance
0.5505

Every format

HEX#cbca21
RGBrgb(203, 202, 33)
HSLhsl(60, 72%, 46%)
CMYKcmyk(0%, 1%, 84%, 20%)
LABlab(79.1 -17.1 74.8)
LCHlch(79.1 76.7 102.9)
OKLCHoklch(0.814 0.170 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbca21 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#cbca21 on black: 12.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green79.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.5%
Yellow83.7%
Key (black)20.4%

Color previews

#cbca21 text on a black background

contrast 12.01:1

Card sample

#cbca21 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbca21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbca21 in the Color Lab