Skip to content

#c2ac51

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

RGB
194, 172, 81
HSL
48°, 48%, 54%
CMYK
0, 11, 58, 24
Luminance
0.4157

Every format

HEX#c2ac51
RGBrgb(194, 172, 81)
HSLhsl(48, 48%, 54%)
CMYKcmyk(0%, 11%, 58%, 24%)
LABlab(70.6 -3.3 48.9)
LCHlch(70.6 49.0 93.8)
OKLCHoklch(0.745 0.114 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2ac51 on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#c2ac51 on black: 9.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green67.5%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta11.3%
Yellow58.2%
Key (black)23.9%

Color previews

#c2ac51 text on a black background

contrast 9.31:1

Card sample

#c2ac51 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ac51

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ac51 in the Color Lab