Skip to content

#c4af2e

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

RGB
196, 175, 46
HSL
52°, 62%, 48%
CMYK
0, 11, 77, 23
Luminance
0.4259

Every format

HEX#c4af2e
RGBrgb(196, 175, 46)
HSLhsl(52, 62%, 48%)
CMYKcmyk(0%, 11%, 77%, 23%)
LABlab(71.3 -6.0 64.1)
LCHlch(71.3 64.4 95.3)
OKLCHoklch(0.750 0.142 99.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c4af2e on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#c4af2e on black: 9.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green68.6%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta10.7%
Yellow76.5%
Key (black)23.1%

Color previews

#c4af2e text on a black background

contrast 9.52:1

Card sample

#c4af2e text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c4af2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4af2e in the Color Lab