Skip to content

#cbaf49

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

RGB
203, 175, 73
HSL
47°, 56%, 54%
CMYK
0, 14, 64, 20
Luminance
0.4384

Every format

HEX#cbaf49
RGBrgb(203, 175, 73)
HSLhsl(47, 56%, 54%)
CMYKcmyk(0%, 14%, 64%, 20%)
LABlab(72.1 -1.5 54.5)
LCHlch(72.1 54.5 91.6)
OKLCHoklch(0.759 0.124 93.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaf49 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#cbaf49 on black: 9.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green68.6%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta13.8%
Yellow64.0%
Key (black)20.4%

Color previews

#cbaf49 text on a black background

contrast 9.77:1

Card sample

#cbaf49 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaf49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf49 in the Color Lab