Skip to content

#ccac32

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

RGB
204, 172, 50
HSL
48°, 61%, 50%
CMYK
0, 16, 76, 20
Luminance
0.4257

Every format

HEX#ccac32
RGBrgb(204, 172, 50)
HSLhsl(48, 61%, 50%)
CMYKcmyk(0%, 16%, 76%, 20%)
LABlab(71.3 -0.7 63.0)
LCHlch(71.3 63.0 90.7)
OKLCHoklch(0.752 0.138 93.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.5%
Blue19.6%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow75.5%
Key (black)20.0%

Color previews

#ccac32 text on a black background

contrast 9.51:1

Card sample

#ccac32 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccac32

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccac32 in the Color Lab