Skip to content

#c4aa4f

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

RGB
196, 170, 79
HSL
47°, 50%, 54%
CMYK
0, 13, 60, 23
Luminance
0.4105

Every format

HEX#c4aa4f
RGBrgb(196, 170, 79)
HSLhsl(47, 50%, 54%)
CMYKcmyk(0%, 13%, 60%, 23%)
LABlab(70.2 -1.5 49.4)
LCHlch(70.2 49.5 91.7)
OKLCHoklch(0.743 0.115 93.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c4aa4f on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#c4aa4f on black: 9.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green66.7%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta13.3%
Yellow59.7%
Key (black)23.1%

Color previews

#c4aa4f text on a black background

contrast 9.21:1

Card sample

#c4aa4f text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c4aa4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4aa4f in the Color Lab