Skip to content

#ccaf55

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

RGB
204, 175, 85
HSL
45°, 54%, 57%
CMYK
0, 14, 58, 20
Luminance
0.4415

Every format

HEX#ccaf55
RGBrgb(204, 175, 85)
HSLhsl(45, 54%, 57%)
CMYKcmyk(0%, 14%, 58%, 20%)
LABlab(72.3 -0.3 49.2)
LCHlch(72.3 49.2 90.3)
OKLCHoklch(0.761 0.115 91.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green68.6%
Blue33.3%

CMYK percentages

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

Color previews

#ccaf55 text on a black background

contrast 9.83:1

Card sample

#ccaf55 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf55 in the Color Lab