Skip to content

#ccaf2c

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

RGB
204, 175, 44
HSL
49°, 65%, 49%
CMYK
0, 14, 78, 20
Luminance
0.4368

Every format

HEX#ccaf2c
RGBrgb(204, 175, 44)
HSLhsl(49, 65%, 49%)
CMYKcmyk(0%, 14%, 78%, 20%)
LABlab(72.0 -2.5 65.7)
LCHlch(72.0 65.8 92.2)
OKLCHoklch(0.758 0.143 95.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf2c on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf2c on black: 9.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue17.3%

CMYK percentages

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

Color previews

#ccaf2c text on a black background

contrast 9.74:1

Card sample

#ccaf2c text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf2c in the Color Lab