Skip to content

#cdba2f

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

RGB
205, 186, 47
HSL
53°, 63%, 49%
CMYK
0, 9, 77, 20
Luminance
0.4830

Every format

HEX#cdba2f
RGBrgb(205, 186, 47)
HSLhsl(53, 63%, 49%)
CMYKcmyk(0%, 9%, 77%, 20%)
LABlab(75.0 -7.7 67.5)
LCHlch(75.0 67.9 96.5)
OKLCHoklch(0.782 0.150 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdba2f on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#cdba2f on black: 10.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green72.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow77.1%
Key (black)19.6%

Color previews

#cdba2f text on a black background

contrast 10.66:1

Card sample

#cdba2f text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 186, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 186, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdba2f;
background: linear-gradient(135deg, #cdba2f, #77CD2F);

Monochromatic scale

Palettes built from #cdba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdba2f in the Color Lab