Skip to content

#c7ac49

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

RGB
199, 172, 73
HSL
47°, 53%, 53%
CMYK
0, 14, 63, 22
Luminance
0.4213

Every format

HEX#c7ac49
RGBrgb(199, 172, 73)
HSLhsl(47, 53%, 53%)
CMYKcmyk(0%, 14%, 63%, 22%)
LABlab(71.0 -1.7 53.1)
LCHlch(71.0 53.1 91.8)
OKLCHoklch(0.749 0.122 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7ac49 on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#c7ac49 on black: 9.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green67.5%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow63.3%
Key (black)22.0%

Color previews

#c7ac49 text on a black background

contrast 9.43:1

Card sample

#c7ac49 text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7ac49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7ac49 in the Color Lab