Skip to content

#cbac2c

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

RGB
203, 172, 44
HSL
48°, 64%, 48%
CMYK
0, 15, 78, 20
Luminance
0.4238

Every format

HEX#cbac2c
RGBrgb(203, 172, 44)
HSLhsl(48, 64%, 48%)
CMYKcmyk(0%, 15%, 78%, 20%)
LABlab(71.1 -1.4 64.9)
LCHlch(71.1 64.9 91.2)
OKLCHoklch(0.751 0.141 94.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green67.5%
Blue17.3%

CMYK percentages

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

Color previews

#cbac2c text on a black background

contrast 9.48:1

Card sample

#cbac2c text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbac2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbac2c in the Color Lab