Skip to content

#ccab49

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

RGB
204, 171, 73
HSL
45°, 56%, 54%
CMYK
0, 16, 64, 20
Luminance
0.4244

Every format

HEX#ccab49
RGBrgb(204, 171, 73)
HSLhsl(45, 56%, 54%)
CMYKcmyk(0%, 16%, 64%, 20%)
LABlab(71.2 1.0 53.5)
LCHlch(71.2 53.5 88.9)
OKLCHoklch(0.752 0.122 90.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccab49 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#ccab49 on black: 9.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.1%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta16.2%
Yellow64.2%
Key (black)20.0%

Color previews

#ccab49 text on a black background

contrast 9.49:1

Card sample

#ccab49 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 171, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 171, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccab49;
background: linear-gradient(135deg, #ccab49, #96CC49);

Monochromatic scale

Palettes built from #ccab49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccab49 in the Color Lab