Skip to content

#c7ab39

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

RGB
199, 171, 57
HSL
48°, 56%, 50%
CMYK
0, 14, 71, 22
Luminance
0.4156

Every format

HEX#c7ab39
RGBrgb(199, 171, 57)
HSLhsl(48, 56%, 50%)
CMYKcmyk(0%, 14%, 71%, 22%)
LABlab(70.6 -2.1 59.5)
LCHlch(70.6 59.5 92.0)
OKLCHoklch(0.746 0.133 94.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.0%
Green67.1%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta14.1%
Yellow71.4%
Key (black)22.0%

Color previews

#c7ab39 text on a black background

contrast 9.31:1

Card sample

#c7ab39 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7ab39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7ab39 in the Color Lab