Skip to content

#c2ac50

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

RGB
194, 172, 80
HSL
48°, 48%, 54%
CMYK
0, 11, 59, 24
Luminance
0.4155

Every format

HEX#c2ac50
RGBrgb(194, 172, 80)
HSLhsl(48, 48%, 54%)
CMYKcmyk(0%, 11%, 59%, 24%)
LABlab(70.6 -3.3 49.3)
LCHlch(70.6 49.4 93.9)
OKLCHoklch(0.745 0.115 96.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green67.5%
Blue31.4%

CMYK percentages

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

Color previews

#c2ac50 text on a black background

contrast 9.31:1

Card sample

#c2ac50 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ac50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ac50 in the Color Lab