Skip to content

#c7ab21

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

RGB
199, 171, 33
HSL
50°, 72%, 46%
CMYK
0, 14, 83, 22
Luminance
0.4138

Every format

HEX#c7ab21
RGBrgb(199, 171, 33)
HSLhsl(50, 72%, 46%)
CMYKcmyk(0%, 14%, 83%, 22%)
LABlab(70.4 -3.0 67.4)
LCHlch(70.4 67.5 92.5)
OKLCHoklch(0.744 0.145 96.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7ab21 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#c7ab21 on black: 9.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green67.1%
Blue12.9%

CMYK percentages

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

Color previews

#c7ab21 text on a black background

contrast 9.28:1

Card sample

#c7ab21 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7ab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7ab21 in the Color Lab