Skip to content

#cbaf2f

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

RGB
203, 175, 47
HSL
49°, 62%, 49%
CMYK
0, 14, 77, 20
Luminance
0.4356

Every format

HEX#cbaf2f
RGBrgb(203, 175, 47)
HSLhsl(49, 62%, 49%)
CMYKcmyk(0%, 14%, 77%, 20%)
LABlab(71.9 -2.9 64.6)
LCHlch(71.9 64.7 92.5)
OKLCHoklch(0.757 0.142 96.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red79.6%
Green68.6%
Blue18.4%

CMYK percentages

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

Color previews

#cbaf2f text on a black background

contrast 9.71:1

Card sample

#cbaf2f text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf2f in the Color Lab