Skip to content

#cdab21

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

RGB
205, 171, 33
HSL
48°, 72%, 47%
CMYK
0, 17, 84, 20
Luminance
0.4221

Every format

HEX#cdab21
RGBrgb(205, 171, 33)
HSLhsl(48, 72%, 47%)
CMYKcmyk(0%, 17%, 84%, 20%)
LABlab(71.0 -0.3 68.1)
LCHlch(71.0 68.1 90.3)
OKLCHoklch(0.750 0.146 93.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdab21 on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#cdab21 on black: 9.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow83.9%
Key (black)19.6%

Color previews

#cdab21 text on a black background

contrast 9.44:1

Card sample

#cdab21 text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdab21 in the Color Lab