Skip to content

#c7af39

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

RGB
199, 175, 57
HSL
50°, 56%, 50%
CMYK
0, 12, 71, 22
Luminance
0.4310

Every format

HEX#c7af39
RGBrgb(199, 175, 57)
HSLhsl(50, 56%, 50%)
CMYKcmyk(0%, 12%, 71%, 22%)
LABlab(71.6 -4.2 60.5)
LCHlch(71.6 60.7 93.9)
OKLCHoklch(0.754 0.136 97.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7af39 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#c7af39 on black: 9.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green68.6%
Blue22.4%

CMYK percentages

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

Color previews

#c7af39 text on a black background

contrast 9.62:1

Card sample

#c7af39 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7af39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7af39 in the Color Lab