Skip to content

#ccae2c

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

RGB
204, 174, 44
HSL
49°, 65%, 49%
CMYK
0, 15, 78, 20
Luminance
0.4329

Every format

HEX#ccae2c
RGBrgb(204, 174, 44)
HSLhsl(49, 65%, 49%)
CMYKcmyk(0%, 15%, 78%, 20%)
LABlab(71.8 -2.0 65.5)
LCHlch(71.8 65.5 91.8)
OKLCHoklch(0.756 0.143 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccae2c on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#ccae2c on black: 9.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.2%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta14.7%
Yellow78.4%
Key (black)20.0%

Color previews

#ccae2c text on a black background

contrast 9.66:1

Card sample

#ccae2c text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccae2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccae2c in the Color Lab