Skip to content

#cdaa39

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

RGB
205, 170, 57
HSL
46°, 60%, 51%
CMYK
0, 17, 72, 20
Luminance
0.4202

Every format

HEX#cdaa39
RGBrgb(205, 170, 57)
HSLhsl(46, 60%, 51%)
CMYKcmyk(0%, 17%, 72%, 20%)
LABlab(70.9 1.1 60.0)
LCHlch(70.9 60.0 89.0)
OKLCHoklch(0.750 0.133 91.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green66.7%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta17.1%
Yellow72.2%
Key (black)19.6%

Color previews

#cdaa39 text on a black background

contrast 9.40:1

Card sample

#cdaa39 text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 170, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 170, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdaa39;
background: linear-gradient(135deg, #cdaa39, #8DCD39);

Monochromatic scale

Palettes built from #cdaa39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdaa39 in the Color Lab