Skip to content

#c2ab2d

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

RGB
194, 171, 45
HSL
51°, 62%, 47%
CMYK
0, 12, 77, 24
Luminance
0.4078

Every format

HEX#c2ab2d
RGBrgb(194, 171, 45)
HSLhsl(51, 62%, 47%)
CMYKcmyk(0%, 12%, 77%, 24%)
LABlab(70.0 -4.8 63.2)
LCHlch(70.0 63.4 94.3)
OKLCHoklch(0.740 0.140 98.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2ab2d on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#c2ab2d on black: 9.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green67.1%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta11.9%
Yellow76.8%
Key (black)23.9%

Color previews

#c2ab2d text on a black background

contrast 9.16:1

Card sample

#c2ab2d text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 171, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 171, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2ab2d;
background: linear-gradient(135deg, #c2ab2d, #76C22D);

Monochromatic scale

Palettes built from #c2ab2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ab2d in the Color Lab