Skip to content

#c9ba39

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

RGB
201, 186, 57
HSL
54°, 57%, 51%
CMYK
0, 8, 72, 21
Luminance
0.4783

Every format

HEX#c9ba39
RGBrgb(201, 186, 57)
HSLhsl(54, 57%, 51%)
CMYKcmyk(0%, 8%, 72%, 21%)
LABlab(74.7 -9.0 63.6)
LCHlch(74.7 64.3 98.1)
OKLCHoklch(0.779 0.144 102.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c9ba39 on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#c9ba39 on black: 10.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.8%
Green72.9%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow71.6%
Key (black)21.2%

Color previews

#c9ba39 text on a black background

contrast 10.57:1

Card sample

#c9ba39 text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(201, 186, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 186, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c9ba39;
background: linear-gradient(135deg, #c9ba39, #78C939);

Monochromatic scale

Palettes built from #c9ba39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c9ba39 in the Color Lab