Skip to content

#ccaf2d

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

RGB
204, 175, 45
HSL
49°, 64%, 49%
CMYK
0, 14, 78, 20
Luminance
0.4369

Every format

HEX#ccaf2d
RGBrgb(204, 175, 45)
HSLhsl(49, 64%, 49%)
CMYKcmyk(0%, 14%, 78%, 20%)
LABlab(72.0 -2.5 65.4)
LCHlch(72.0 65.4 92.2)
OKLCHoklch(0.758 0.143 95.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccaf2d on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#ccaf2d on black: 9.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green68.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta14.2%
Yellow77.9%
Key (black)20.0%

Color previews

#ccaf2d text on a black background

contrast 9.74:1

Card sample

#ccaf2d text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccaf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccaf2d in the Color Lab