Skip to content

#ccab2d

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

RGB
204, 171, 45
HSL
48°, 64%, 49%
CMYK
0, 16, 78, 20
Luminance
0.4215

Every format

HEX#ccab2d
RGBrgb(204, 171, 45)
HSLhsl(48, 64%, 49%)
CMYKcmyk(0%, 16%, 78%, 20%)
LABlab(71.0 -0.4 64.4)
LCHlch(71.0 64.4 90.3)
OKLCHoklch(0.750 0.141 93.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.1%
Blue17.6%

CMYK percentages

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

Color previews

#ccab2d text on a black background

contrast 9.43:1

Card sample

#ccab2d text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccab2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccab2d in the Color Lab