Skip to content

#ccab2f

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

RGB
204, 171, 47
HSL
47°, 63%, 49%
CMYK
0, 16, 77, 20
Luminance
0.4217

Every format

HEX#ccab2f
RGBrgb(204, 171, 47)
HSLhsl(47, 63%, 49%)
CMYKcmyk(0%, 16%, 77%, 20%)
LABlab(71.0 -0.3 63.8)
LCHlch(71.0 63.8 90.3)
OKLCHoklch(0.750 0.139 93.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccab2f on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#ccab2f on black: 9.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.1%
Blue18.4%

CMYK percentages

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

Color previews

#ccab2f text on a black background

contrast 9.43:1

Card sample

#ccab2f text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccab2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccab2f in the Color Lab