Skip to content

#cbaf2c

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

RGB
203, 175, 44
HSL
49°, 64%, 48%
CMYK
0, 14, 78, 20
Luminance
0.4354

Every format

HEX#cbaf2c
RGBrgb(203, 175, 44)
HSLhsl(49, 64%, 48%)
CMYKcmyk(0%, 14%, 78%, 20%)
LABlab(71.9 -3.0 65.6)
LCHlch(71.9 65.7 92.6)
OKLCHoklch(0.757 0.143 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaf2c on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#cbaf2c on black: 9.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta13.8%
Yellow78.3%
Key (black)20.4%

Color previews

#cbaf2c text on a black background

contrast 9.71:1

Card sample

#cbaf2c text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf2c in the Color Lab