Skip to content

#ccae2f

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

RGB
204, 174, 47
HSL
49°, 63%, 49%
CMYK
0, 15, 77, 20
Luminance
0.4331

Every format

HEX#ccae2f
RGBrgb(204, 174, 47)
HSLhsl(49, 63%, 49%)
CMYKcmyk(0%, 15%, 77%, 20%)
LABlab(71.8 -1.9 64.5)
LCHlch(71.8 64.5 91.7)
OKLCHoklch(0.756 0.141 95.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green68.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta14.7%
Yellow77.0%
Key (black)20.0%

Color previews

#ccae2f text on a black background

contrast 9.66:1

Card sample

#ccae2f text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccae2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccae2f in the Color Lab