Skip to content

#cecc2c

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

RGB
206, 204, 44
HSL
59°, 65%, 49%
CMYK
0, 1, 79, 19
Luminance
0.5649

Every format

HEX#cecc2c
RGBrgb(206, 204, 44)
HSLhsl(59, 65%, 49%)
CMYKcmyk(0%, 1%, 79%, 19%)
LABlab(79.9 -16.5 72.8)
LCHlch(79.9 74.7 102.8)
OKLCHoklch(0.821 0.167 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cecc2c on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#cecc2c on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green80.0%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow78.6%
Key (black)19.2%

Color previews

#cecc2c text on a black background

contrast 12.30:1

Card sample

#cecc2c text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cecc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cecc2c in the Color Lab