Skip to content

#c2ba49

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

RGB
194, 186, 73
HSL
56°, 50%, 52%
CMYK
0, 4, 62, 24
Luminance
0.4707

Every format

HEX#c2ba49
RGBrgb(194, 186, 73)
HSLhsl(56, 50%, 52%)
CMYKcmyk(0%, 4%, 62%, 24%)
LABlab(74.2 -11.1 56.5)
LCHlch(74.2 57.6 101.1)
OKLCHoklch(0.774 0.134 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2ba49 on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#c2ba49 on black: 10.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green72.9%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta4.1%
Yellow62.4%
Key (black)23.9%

Color previews

#c2ba49 text on a black background

contrast 10.41:1

Card sample

#c2ba49 text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 186, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 186, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2ba49;
background: linear-gradient(135deg, #c2ba49, #7AC249);

Monochromatic scale

Palettes built from #c2ba49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ba49 in the Color Lab