Skip to content

#ccc72c

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

RGB
204, 199, 44
HSL
58°, 65%, 49%
CMYK
0, 3, 78, 20
Luminance
0.5387

Every format

HEX#ccc72c
RGBrgb(204, 199, 44)
HSLhsl(58, 65%, 49%)
CMYKcmyk(0%, 3%, 78%, 20%)
LABlab(78.4 -14.9 71.4)
LCHlch(78.4 72.9 101.8)
OKLCHoklch(0.809 0.163 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green78.0%
Blue17.3%

CMYK percentages

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

Color previews

#ccc72c text on a black background

contrast 11.77:1

Card sample

#ccc72c text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc72c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc72c in the Color Lab