Skip to content

#c2cf2e

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

RGB
194, 207, 46
HSL
65°, 64%, 50%
CMYK
6, 0, 78, 19
Luminance
0.5629

Every format

HEX#c2cf2e
RGBrgb(194, 207, 46)
HSLhsl(65, 64%, 50%)
CMYKcmyk(6%, 0%, 78%, 19%)
LABlab(79.8 -23.0 71.8)
LCHlch(79.8 75.4 107.8)
OKLCHoklch(0.818 0.172 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2cf2e on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#c2cf2e on black: 12.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green81.2%
Blue18.0%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow77.8%
Key (black)18.8%

Color previews

#c2cf2e text on a black background

contrast 12.26:1

Card sample

#c2cf2e text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 207, 46, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 207, 46, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2cf2e;
background: linear-gradient(135deg, #c2cf2e, #57CF2E);

Monochromatic scale

Palettes built from #c2cf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cf2e in the Color Lab