Skip to content

#ccab39

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

RGB
204, 171, 57
HSL
47°, 59%, 51%
CMYK
0, 16, 72, 20
Luminance
0.4226

Every format

HEX#ccab39
RGBrgb(204, 171, 57)
HSLhsl(47, 59%, 51%)
CMYKcmyk(0%, 16%, 72%, 20%)
LABlab(71.0 0.1 60.1)
LCHlch(71.0 60.1 89.9)
OKLCHoklch(0.751 0.134 92.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccab39 on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#ccab39 on black: 9.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.1%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta16.2%
Yellow72.1%
Key (black)20.0%

Color previews

#ccab39 text on a black background

contrast 9.45:1

Card sample

#ccab39 text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccab39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccab39 in the Color Lab