Skip to content

#cdac40

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

RGB
205, 172, 64
HSL
46°, 59%, 53%
CMYK
0, 16, 69, 20
Luminance
0.4285

Every format

HEX#cdac40
RGBrgb(205, 172, 64)
HSLhsl(46, 59%, 53%)
CMYKcmyk(0%, 16%, 69%, 20%)
LABlab(71.5 0.4 57.7)
LCHlch(71.5 57.7 89.6)
OKLCHoklch(0.754 0.130 91.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green67.5%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta16.1%
Yellow68.8%
Key (black)19.6%

Color previews

#cdac40 text on a black background

contrast 9.57:1

Card sample

#cdac40 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 172, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 172, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdac40;
background: linear-gradient(135deg, #cdac40, #90CD40);

Monochromatic scale

Palettes built from #cdac40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdac40 in the Color Lab