Skip to content

#cbba2c

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

RGB
203, 186, 44
HSL
54°, 64%, 48%
CMYK
0, 8, 78, 20
Luminance
0.4800

Every format

HEX#cbba2c
RGBrgb(203, 186, 44)
HSLhsl(54, 64%, 48%)
CMYKcmyk(0%, 8%, 78%, 20%)
LABlab(74.8 -8.7 68.2)
LCHlch(74.8 68.8 97.3)
OKLCHoklch(0.780 0.151 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbba2c on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#cbba2c on black: 10.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green72.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta8.4%
Yellow78.3%
Key (black)20.4%

Color previews

#cbba2c text on a black background

contrast 10.60:1

Card sample

#cbba2c text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbba2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbba2c in the Color Lab