Skip to content

#cd9d2c

a balanced, vivid yellow · warm · closest name: peru

RGB
205, 157, 44
HSL
42°, 65%, 49%
CMYK
0, 23, 79, 20
Luminance
0.3727

Every format

HEX#cd9d2c
RGBrgb(205, 157, 44)
HSLhsl(42, 65%, 49%)
CMYKcmyk(0%, 23%, 79%, 20%)
LABlab(67.5 7.5 61.6)
LCHlch(67.5 62.1 83.1)
OKLCHoklch(0.723 0.135 84.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd9d2c on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#cd9d2c on black: 8.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green61.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta23.4%
Yellow78.5%
Key (black)19.6%

Color previews

#cd9d2c text on a black background

contrast 8.45:1

Card sample

#cd9d2c text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 157, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 157, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd9d2c;
background: linear-gradient(135deg, #cd9d2c, #92CD2C);

Monochromatic scale

Palettes built from #cd9d2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd9d2c in the Color Lab