Skip to content

#cbaf48

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

RGB
203, 175, 72
HSL
47°, 56%, 54%
CMYK
0, 14, 65, 20
Luminance
0.4382

Every format

HEX#cbaf48
RGBrgb(203, 175, 72)
HSLhsl(47, 56%, 54%)
CMYKcmyk(0%, 14%, 65%, 20%)
LABlab(72.1 -1.6 54.9)
LCHlch(72.1 54.9 91.7)
OKLCHoklch(0.759 0.125 93.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#cbaf48 text on a black background

contrast 9.76:1

Card sample

#cbaf48 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaf48

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf48 in the Color Lab