Skip to content

#c4ab21

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

RGB
196, 171, 33
HSL
51°, 71%, 45%
CMYK
0, 13, 83, 23
Luminance
0.4097

Every format

HEX#c4ab21
RGBrgb(196, 171, 33)
HSLhsl(51, 71%, 45%)
CMYKcmyk(0%, 13%, 83%, 23%)
LABlab(70.2 -4.3 67.0)
LCHlch(70.2 67.2 93.7)
OKLCHoklch(0.741 0.145 97.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.9%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta12.8%
Yellow83.2%
Key (black)23.1%

Color previews

#c4ab21 text on a black background

contrast 9.19:1

Card sample

#c4ab21 text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c4ab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4ab21 in the Color Lab