Skip to content

#cdab0f

a dark, electric yellow · cool · closest name: gold

RGB
205, 171, 15
HSL
49°, 86%, 43%
CMYK
0, 17, 93, 20
Luminance
0.4214

Every format

HEX#cdab0f
RGBrgb(205, 171, 15)
HSLhsl(49, 86%, 43%)
CMYKcmyk(0%, 17%, 93%, 20%)
LABlab(71.0 -0.7 71.8)
LCHlch(71.0 71.8 90.6)
OKLCHoklch(0.750 0.151 94.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green67.1%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow92.7%
Key (black)19.6%

Color previews

#cdab0f text on a black background

contrast 9.43:1

Card sample

#cdab0f text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 171, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 171, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdab0f;
background: linear-gradient(135deg, #cdab0f, #70CD0F);

Monochromatic scale

Palettes built from #cdab0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdab0f in the Color Lab