Skip to content

#c2ac2d

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

RGB
194, 172, 45
HSL
51°, 62%, 47%
CMYK
0, 11, 77, 24
Luminance
0.4116

Every format

HEX#c2ac2d
RGBrgb(194, 172, 45)
HSLhsl(51, 62%, 47%)
CMYKcmyk(0%, 11%, 77%, 24%)
LABlab(70.3 -5.3 63.5)
LCHlch(70.3 63.7 94.8)
OKLCHoklch(0.742 0.140 98.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#c2ac2d text on a black background

contrast 9.23:1

Card sample

#c2ac2d text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ac2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ac2d in the Color Lab