Skip to content

#ccc72b

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

RGB
204, 199, 43
HSL
58°, 65%, 48%
CMYK
0, 3, 79, 20
Luminance
0.5386

Every format

HEX#ccc72b
RGBrgb(204, 199, 43)
HSLhsl(58, 65%, 48%)
CMYKcmyk(0%, 3%, 79%, 20%)
LABlab(78.4 -14.9 71.7)
LCHlch(78.4 73.2 101.8)
OKLCHoklch(0.808 0.163 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc72b on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#ccc72b on black: 11.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.0%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow78.9%
Key (black)20.0%

Color previews

#ccc72b text on a black background

contrast 11.77:1

Card sample

#ccc72b text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 199, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 199, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc72b;
background: linear-gradient(135deg, #ccc72b, #66CC2B);

Monochromatic scale

Palettes built from #ccc72b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc72b in the Color Lab