Skip to content

#cbae2d

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

RGB
203, 174, 45
HSL
49°, 64%, 49%
CMYK
0, 14, 78, 20
Luminance
0.4316

Every format

HEX#cbae2d
RGBrgb(203, 174, 45)
HSLhsl(49, 64%, 49%)
CMYKcmyk(0%, 14%, 78%, 20%)
LABlab(71.7 -2.4 65.0)
LCHlch(71.7 65.1 92.1)
OKLCHoklch(0.755 0.142 95.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbae2d on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#cbae2d on black: 9.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green68.2%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta14.3%
Yellow77.8%
Key (black)20.4%

Color previews

#cbae2d text on a black background

contrast 9.63:1

Card sample

#cbae2d text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 174, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 174, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbae2d;
background: linear-gradient(135deg, #cbae2d, #7FCB2D);

Monochromatic scale

Palettes built from #cbae2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbae2d in the Color Lab