Skip to content

#ccad2c

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

RGB
204, 173, 44
HSL
48°, 65%, 49%
CMYK
0, 15, 78, 20
Luminance
0.4291

Every format

HEX#ccad2c
RGBrgb(204, 173, 44)
HSLhsl(48, 65%, 49%)
CMYKcmyk(0%, 15%, 78%, 20%)
LABlab(71.5 -1.5 65.2)
LCHlch(71.5 65.3 91.3)
OKLCHoklch(0.754 0.142 94.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccad2c on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#ccad2c on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green67.8%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta15.2%
Yellow78.4%
Key (black)20.0%

Color previews

#ccad2c text on a black background

contrast 9.58:1

Card sample

#ccad2c text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 173, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 173, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccad2c;
background: linear-gradient(135deg, #ccad2c, #80CC2C);

Monochromatic scale

Palettes built from #ccad2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccad2c in the Color Lab