Skip to content

#cfcd2f

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

RGB
207, 205, 47
HSL
59°, 63%, 50%
CMYK
0, 1, 77, 19
Luminance
0.5713

Every format

HEX#cfcd2f
RGBrgb(207, 205, 47)
HSLhsl(59, 63%, 50%)
CMYKcmyk(0%, 1%, 77%, 19%)
LABlab(80.3 -16.5 72.3)
LCHlch(80.3 74.2 102.9)
OKLCHoklch(0.824 0.166 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green80.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow77.3%
Key (black)18.8%

Color previews

#cfcd2f text on a black background

contrast 12.43:1

Card sample

#cfcd2f text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcd2f in the Color Lab