Skip to content

#cbaf2d

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

RGB
203, 175, 45
HSL
49°, 64%, 49%
CMYK
0, 14, 78, 20
Luminance
0.4355

Every format

HEX#cbaf2d
RGBrgb(203, 175, 45)
HSLhsl(49, 64%, 49%)
CMYKcmyk(0%, 14%, 78%, 20%)
LABlab(71.9 -2.9 65.3)
LCHlch(71.9 65.3 92.6)
OKLCHoklch(0.757 0.143 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#cbaf2d text on a black background

contrast 9.71:1

Card sample

#cbaf2d text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf2d in the Color Lab