Skip to content

#ccac2c

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

RGB
204, 172, 44
HSL
48°, 65%, 49%
CMYK
0, 16, 78, 20
Luminance
0.4252

Every format

HEX#ccac2c
RGBrgb(204, 172, 44)
HSLhsl(48, 65%, 49%)
CMYKcmyk(0%, 16%, 78%, 20%)
LABlab(71.2 -1.0 65.0)
LCHlch(71.2 65.0 90.8)
OKLCHoklch(0.752 0.142 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccac2c on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#ccac2c on black: 9.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.5%
Blue17.3%

CMYK percentages

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

Color previews

#ccac2c text on a black background

contrast 9.50:1

Card sample

#ccac2c text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccac2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccac2c in the Color Lab