Skip to content

#ccac4f

a balanced, vivid yellow · warm · closest name: khaki

RGB
204, 172, 79
HSL
45°, 55%, 56%
CMYK
0, 16, 61, 20
Luminance
0.4291

Every format

HEX#ccac4f
RGBrgb(204, 172, 79)
HSLhsl(45, 55%, 56%)
CMYKcmyk(0%, 16%, 61%, 20%)
LABlab(71.5 0.9 51.1)
LCHlch(71.5 51.1 89.0)
OKLCHoklch(0.755 0.118 90.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccac4f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#ccac4f on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.5%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow61.3%
Key (black)20.0%

Color previews

#ccac4f text on a black background

contrast 9.58:1

Card sample

#ccac4f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccac4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccac4f in the Color Lab