Skip to content

#c2cf1f

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

RGB
194, 207, 31
HSL
64°, 74%, 47%
CMYK
6, 0, 85, 19
Luminance
0.5619

Every format

HEX#c2cf1f
RGBrgb(194, 207, 31)
HSLhsl(64, 74%, 47%)
CMYKcmyk(6%, 0%, 85%, 19%)
LABlab(79.7 -23.5 75.5)
LCHlch(79.7 79.0 107.3)
OKLCHoklch(0.817 0.178 114.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2cf1f on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#c2cf1f on black: 12.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green81.2%
Blue12.2%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow85.0%
Key (black)18.8%

Color previews

#c2cf1f text on a black background

contrast 12.24:1

Card sample

#c2cf1f text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2cf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cf1f in the Color Lab