Skip to content

#c7af45

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

RGB
199, 175, 69
HSL
49°, 54%, 53%
CMYK
0, 12, 65, 22
Luminance
0.4323

Every format

HEX#c7af45
RGBrgb(199, 175, 69)
HSLhsl(49, 54%, 53%)
CMYKcmyk(0%, 12%, 65%, 22%)
LABlab(71.7 -3.5 55.7)
LCHlch(71.7 55.8 93.6)
OKLCHoklch(0.755 0.127 96.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red78.0%
Green68.6%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta12.1%
Yellow65.3%
Key (black)22.0%

Color previews

#c7af45 text on a black background

contrast 9.65:1

Card sample

#c7af45 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7af45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7af45 in the Color Lab