Skip to content

#ccab55

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

RGB
204, 171, 85
HSL
43°, 54%, 57%
CMYK
0, 16, 58, 20
Luminance
0.4262

Every format

HEX#ccab55
RGBrgb(204, 171, 85)
HSLhsl(43, 54%, 57%)
CMYKcmyk(0%, 16%, 58%, 20%)
LABlab(71.3 1.8 48.0)
LCHlch(71.3 48.1 87.8)
OKLCHoklch(0.753 0.112 88.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccab55 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#ccab55 on black: 9.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.1%
Blue33.3%

CMYK percentages

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

Color previews

#ccab55 text on a black background

contrast 9.52:1

Card sample

#ccab55 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccab55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccab55 in the Color Lab