Skip to content

#ccad2f

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

RGB
204, 173, 47
HSL
48°, 63%, 49%
CMYK
0, 15, 77, 20
Luminance
0.4293

Every format

HEX#ccad2f
RGBrgb(204, 173, 47)
HSLhsl(48, 63%, 49%)
CMYKcmyk(0%, 15%, 77%, 20%)
LABlab(71.5 -1.4 64.2)
LCHlch(71.5 64.3 91.2)
OKLCHoklch(0.754 0.141 94.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green67.8%
Blue18.4%

CMYK percentages

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

Color previews

#ccad2f text on a black background

contrast 9.59:1

Card sample

#ccad2f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccad2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccad2f in the Color Lab