Skip to content

#c4af4f

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

RGB
196, 175, 79
HSL
49°, 50%, 54%
CMYK
0, 11, 60, 23
Luminance
0.4296

Every format

HEX#c4af4f
RGBrgb(196, 175, 79)
HSLhsl(49, 50%, 54%)
CMYKcmyk(0%, 11%, 60%, 23%)
LABlab(71.5 -4.1 50.9)
LCHlch(71.5 51.1 94.6)
OKLCHoklch(0.753 0.118 97.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c4af4f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#c4af4f on black: 9.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green68.6%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta10.7%
Yellow59.7%
Key (black)23.1%

Color previews

#c4af4f text on a black background

contrast 9.59:1

Card sample

#c4af4f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 175, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 175, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c4af4f;
background: linear-gradient(135deg, #c4af4f, #8BC44F);

Monochromatic scale

Palettes built from #c4af4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4af4f in the Color Lab