Skip to content

#cbac49

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

RGB
203, 172, 73
HSL
46°, 56%, 54%
CMYK
0, 15, 64, 20
Luminance
0.4268

Every format

HEX#cbac49
RGBrgb(203, 172, 73)
HSLhsl(46, 56%, 54%)
CMYKcmyk(0%, 15%, 64%, 20%)
LABlab(71.3 0.1 53.6)
LCHlch(71.3 53.6 89.9)
OKLCHoklch(0.753 0.122 91.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbac49 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#cbac49 on black: 9.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green67.5%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow64.0%
Key (black)20.4%

Color previews

#cbac49 text on a black background

contrast 9.54:1

Card sample

#cbac49 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 172, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 172, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbac49;
background: linear-gradient(135deg, #cbac49, #93CB49);

Monochromatic scale

Palettes built from #cbac49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbac49 in the Color Lab