Skip to content

#cdaf2d

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

RGB
205, 175, 45
HSL
49°, 64%, 49%
CMYK
0, 15, 78, 20
Luminance
0.4383

Every format

HEX#cdaf2d
RGBrgb(205, 175, 45)
HSLhsl(49, 64%, 49%)
CMYKcmyk(0%, 15%, 78%, 20%)
LABlab(72.1 -2.1 65.5)
LCHlch(72.1 65.5 91.8)
OKLCHoklch(0.759 0.143 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#cdaf2d text on a black background

contrast 9.77:1

Card sample

#cdaf2d text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdaf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdaf2d in the Color Lab