Skip to content

#c8af21

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

RGB
200, 175, 33
HSL
51°, 72%, 46%
CMYK
0, 13, 84, 22
Luminance
0.4305

Every format

HEX#c8af21
RGBrgb(200, 175, 33)
HSLhsl(51, 72%, 46%)
CMYKcmyk(0%, 13%, 84%, 22%)
LABlab(71.6 -4.7 68.4)
LCHlch(71.6 68.6 93.9)
OKLCHoklch(0.753 0.148 98.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c8af21 on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#c8af21 on black: 9.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green68.6%
Blue12.9%

CMYK percentages

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

Color previews

#c8af21 text on a black background

contrast 9.61:1

Card sample

#c8af21 text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c8af21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c8af21 in the Color Lab