Skip to content

#c4cc2f

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

RGB
196, 204, 47
HSL
63°, 63%, 49%
CMYK
4, 0, 77, 20
Luminance
0.5513

Every format

HEX#c4cc2f
RGBrgb(196, 204, 47)
HSLhsl(63, 63%, 49%)
CMYKcmyk(4%, 0%, 77%, 20%)
LABlab(79.1 -20.6 70.9)
LCHlch(79.1 73.9 106.2)
OKLCHoklch(0.813 0.168 112.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c4cc2f on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#c4cc2f on black: 12.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green80.0%
Blue18.4%

CMYK percentages

Cyan3.9%
Magenta0.0%
Yellow77.0%
Key (black)20.0%

Color previews

#c4cc2f text on a black background

contrast 12.03:1

Card sample

#c4cc2f text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 204, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 204, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c4cc2f;
background: linear-gradient(135deg, #c4cc2f, #5BCC2F);

Monochromatic scale

Palettes built from #c4cc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c4cc2f in the Color Lab