Skip to content

#c2af55

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

RGB
194, 175, 85
HSL
50°, 47%, 55%
CMYK
0, 10, 56, 24
Luminance
0.4279

Every format

HEX#c2af55
RGBrgb(194, 175, 85)
HSLhsl(50, 47%, 55%)
CMYKcmyk(0%, 10%, 56%, 24%)
LABlab(71.4 -4.5 47.9)
LCHlch(71.4 48.1 95.4)
OKLCHoklch(0.752 0.113 97.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2af55 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#c2af55 on black: 9.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green68.6%
Blue33.3%

CMYK percentages

Cyan0.0%
Magenta9.8%
Yellow56.2%
Key (black)23.9%

Color previews

#c2af55 text on a black background

contrast 9.56:1

Card sample

#c2af55 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2af55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2af55 in the Color Lab