Skip to content

#cbac2f

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

RGB
203, 172, 47
HSL
48°, 62%, 49%
CMYK
0, 15, 77, 20
Luminance
0.4241

Every format

HEX#cbac2f
RGBrgb(203, 172, 47)
HSLhsl(48, 62%, 49%)
CMYKcmyk(0%, 15%, 77%, 20%)
LABlab(71.2 -1.3 63.9)
LCHlch(71.2 63.9 91.1)
OKLCHoklch(0.751 0.140 94.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green67.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow76.8%
Key (black)20.4%

Color previews

#cbac2f text on a black background

contrast 9.48:1

Card sample

#cbac2f text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbac2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbac2f in the Color Lab