Skip to content

#c2ba40

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

RGB
194, 186, 64
HSL
56°, 52%, 51%
CMYK
0, 4, 67, 24
Luminance
0.4696

Every format

HEX#c2ba40
RGBrgb(194, 186, 64)
HSLhsl(56, 52%, 51%)
CMYKcmyk(0%, 4%, 67%, 24%)
LABlab(74.2 -11.7 60.2)
LCHlch(74.2 61.3 101.0)
OKLCHoklch(0.773 0.140 105.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green72.9%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta4.1%
Yellow67.0%
Key (black)23.9%

Color previews

#c2ba40 text on a black background

contrast 10.39:1

Card sample

#c2ba40 text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2ba40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2ba40 in the Color Lab