Skip to content

#c7ab56

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

RGB
199, 171, 86
HSL
45°, 50%, 56%
CMYK
0, 14, 57, 22
Luminance
0.4194

Every format

HEX#c7ab56
RGBrgb(199, 171, 86)
HSLhsl(45, 50%, 56%)
CMYKcmyk(0%, 14%, 57%, 22%)
LABlab(70.8 -0.2 46.9)
LCHlch(70.8 46.9 90.3)
OKLCHoklch(0.749 0.110 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7ab56 on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#c7ab56 on black: 9.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green67.1%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta14.1%
Yellow56.8%
Key (black)22.0%

Color previews

#c7ab56 text on a black background

contrast 9.39:1

Card sample

#c7ab56 text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(199, 171, 86, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 171, 86, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7ab56;
background: linear-gradient(135deg, #c7ab56, #98C756);

Monochromatic scale

Palettes built from #c7ab56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7ab56 in the Color Lab