Skip to content

#c7aa21

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

RGB
199, 170, 33
HSL
50°, 72%, 46%
CMYK
0, 15, 83, 22
Luminance
0.4100

Every format

HEX#c7aa21
RGBrgb(199, 170, 33)
HSLhsl(50, 72%, 46%)
CMYKcmyk(0%, 15%, 83%, 22%)
LABlab(70.2 -2.5 67.2)
LCHlch(70.2 67.2 92.1)
OKLCHoklch(0.742 0.145 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7aa21 on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#c7aa21 on black: 9.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow83.4%
Key (black)22.0%

Color previews

#c7aa21 text on a black background

contrast 9.20:1

Card sample

#c7aa21 text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 170, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 170, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7aa21;
background: linear-gradient(135deg, #c7aa21, #75C721);

Monochromatic scale

Palettes built from #c7aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7aa21 in the Color Lab