Skip to content

#c9a821

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

RGB
201, 168, 33
HSL
48°, 72%, 46%
CMYK
0, 16, 84, 21
Luminance
0.4053

Every format

HEX#c9a821
RGBrgb(201, 168, 33)
HSLhsl(48, 72%, 46%)
CMYKcmyk(0%, 16%, 84%, 21%)
LABlab(69.8 -0.5 67.0)
LCHlch(69.8 67.0 90.4)
OKLCHoklch(0.740 0.144 93.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c9a821 on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#c9a821 on black: 9.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.8%
Green65.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.4%
Yellow83.6%
Key (black)21.2%

Color previews

#c9a821 text on a black background

contrast 9.11:1

Card sample

#c9a821 text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(201, 168, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(201, 168, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c9a821;
background: linear-gradient(135deg, #c9a821, #7AC921);

Monochromatic scale

Palettes built from #c9a821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c9a821 in the Color Lab