Skip to content

#ccaf4d

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

RGB
204, 175, 77
HSL
46°, 56%, 55%
CMYK
0, 14, 62, 20
Luminance
0.4403

Every format

HEX#ccaf4d
RGBrgb(204, 175, 77)
HSLhsl(46, 56%, 55%)
CMYKcmyk(0%, 14%, 62%, 20%)
LABlab(72.3 -0.8 52.9)
LCHlch(72.3 52.9 90.9)
OKLCHoklch(0.761 0.121 92.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf4d on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf4d on black: 9.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow62.3%
Key (black)20.0%

Color previews

#ccaf4d text on a black background

contrast 9.81:1

Card sample

#ccaf4d text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf4d in the Color Lab