Skip to content

#cfcd2c

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

RGB
207, 205, 44
HSL
59°, 65%, 49%
CMYK
0, 1, 79, 19
Luminance
0.5711

Every format

HEX#cfcd2c
RGBrgb(207, 205, 44)
HSLhsl(59, 65%, 49%)
CMYKcmyk(0%, 1%, 79%, 19%)
LABlab(80.2 -16.6 73.1)
LCHlch(80.2 75.0 102.8)
OKLCHoklch(0.824 0.168 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcd2c on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cfcd2c on black: 12.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green80.4%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow78.7%
Key (black)18.8%

Color previews

#cfcd2c text on a black background

contrast 12.42:1

Card sample

#cfcd2c text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 205, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 205, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcd2c;
background: linear-gradient(135deg, #cfcd2c, #64CF2C);

Monochromatic scale

Palettes built from #cfcd2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcd2c in the Color Lab