Skip to content

#c2ab2b

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

RGB
194, 171, 43
HSL
51°, 64%, 47%
CMYK
0, 12, 78, 24
Luminance
0.4077

Every format

HEX#c2ab2b
RGBrgb(194, 171, 43)
HSLhsl(51, 64%, 47%)
CMYKcmyk(0%, 12%, 78%, 24%)
LABlab(70.0 -4.9 63.9)
LCHlch(70.0 64.0 94.4)
OKLCHoklch(0.740 0.141 98.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2ab2b on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#c2ab2b on black: 9.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green67.1%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta11.9%
Yellow77.8%
Key (black)23.9%

Color previews

#c2ab2b text on a black background

contrast 9.15:1

Card sample

#c2ab2b text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ab2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ab2b in the Color Lab