Skip to content

#c2ab55

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

RGB
194, 171, 85
HSL
47°, 47%, 55%
CMYK
0, 12, 56, 24
Luminance
0.4125

Every format

HEX#c2ab55
RGBrgb(194, 171, 85)
HSLhsl(47, 47%, 55%)
CMYKcmyk(0%, 12%, 56%, 24%)
LABlab(70.3 -2.4 46.7)
LCHlch(70.3 46.7 93.0)
OKLCHoklch(0.744 0.110 94.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2ab55 on white: 2.27:1
AA ✗ fail · AA-large · AAA
Aa
#c2ab55 on black: 9.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green67.1%
Blue33.3%

CMYK percentages

Cyan0.0%
Magenta11.9%
Yellow56.2%
Key (black)23.9%

Color previews

#c2ab55 text on a black background

contrast 9.25:1

Card sample

#c2ab55 text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ab55

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ab55 in the Color Lab