Skip to content

#c8aa21

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

RGB
200, 170, 33
HSL
49°, 72%, 46%
CMYK
0, 15, 84, 22
Luminance
0.4114

Every format

HEX#c8aa21
RGBrgb(200, 170, 33)
HSLhsl(49, 72%, 46%)
CMYKcmyk(0%, 15%, 84%, 22%)
LABlab(70.3 -2.0 67.3)
LCHlch(70.3 67.3 91.7)
OKLCHoklch(0.743 0.145 95.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.4%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.0%
Yellow83.5%
Key (black)21.6%

Color previews

#c8aa21 text on a black background

contrast 9.23:1

Card sample

#c8aa21 text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c8aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c8aa21 in the Color Lab