Skip to content

#ccaf47

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

RGB
204, 175, 71
HSL
47°, 57%, 54%
CMYK
0, 14, 65, 20
Luminance
0.4395

Every format

HEX#ccaf47
RGBrgb(204, 175, 71)
HSLhsl(47, 57%, 54%)
CMYKcmyk(0%, 14%, 65%, 20%)
LABlab(72.2 -1.2 55.5)
LCHlch(72.2 55.5 91.3)
OKLCHoklch(0.760 0.126 93.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green68.6%
Blue27.8%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow65.2%
Key (black)20.0%

Color previews

#ccaf47 text on a black background

contrast 9.79:1

Card sample

#ccaf47 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf47

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf47 in the Color Lab