Skip to content

#cdaf2c

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

RGB
205, 175, 44
HSL
49°, 65%, 49%
CMYK
0, 15, 79, 20
Luminance
0.4382

Every format

HEX#cdaf2c
RGBrgb(205, 175, 44)
HSLhsl(49, 65%, 49%)
CMYKcmyk(0%, 15%, 79%, 20%)
LABlab(72.1 -2.1 65.8)
LCHlch(72.1 65.9 91.8)
OKLCHoklch(0.759 0.144 95.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdaf2c on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#cdaf2c on black: 9.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow78.5%
Key (black)19.6%

Color previews

#cdaf2c text on a black background

contrast 9.76:1

Card sample

#cdaf2c text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdaf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdaf2c in the Color Lab