Skip to content

#ccbb21

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

RGB
204, 187, 33
HSL
54°, 72%, 47%
CMYK
0, 8, 84, 20
Luminance
0.4849

Every format

HEX#ccbb21
RGBrgb(204, 187, 33)
HSLhsl(54, 72%, 47%)
CMYKcmyk(0%, 8%, 84%, 20%)
LABlab(75.1 -9.1 71.5)
LCHlch(75.1 72.1 97.3)
OKLCHoklch(0.782 0.157 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccbb21 on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#ccbb21 on black: 10.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green73.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta8.3%
Yellow83.8%
Key (black)20.0%

Color previews

#ccbb21 text on a black background

contrast 10.70:1

Card sample

#ccbb21 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccbb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccbb21 in the Color Lab