Skip to content

#cdb451

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

RGB
205, 180, 81
HSL
48°, 55%, 56%
CMYK
0, 12, 61, 20
Luminance
0.4622

Every format

HEX#cdb451
RGBrgb(205, 180, 81)
HSLhsl(48, 55%, 56%)
CMYKcmyk(0%, 12%, 61%, 20%)
LABlab(73.7 -2.8 52.6)
LCHlch(73.7 52.7 93.0)
OKLCHoklch(0.772 0.122 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdb451 on white: 2.05:1
AA ✗ fail · AA-large · AAA
Aa
#cdb451 on black: 10.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green70.6%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta12.2%
Yellow60.5%
Key (black)19.6%

Color previews

#cdb451 text on a black background

contrast 10.24:1

Card sample

#cdb451 text on a white background

contrast 2.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 180, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 180, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdb451;
background: linear-gradient(135deg, #cdb451, #93CD51);

Monochromatic scale

Palettes built from #cdb451

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdb451 in the Color Lab