Skip to content

#cfcc2e

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

RGB
207, 204, 46
HSL
59°, 64%, 50%
CMYK
0, 1, 78, 19
Luminance
0.5665

Every format

HEX#cfcc2e
RGBrgb(207, 204, 46)
HSLhsl(59, 64%, 50%)
CMYKcmyk(0%, 1%, 78%, 19%)
LABlab(80.0 -16.0 72.3)
LCHlch(80.0 74.1 102.5)
OKLCHoklch(0.822 0.166 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcc2e on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cfcc2e on black: 12.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green80.0%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow77.8%
Key (black)18.8%

Color previews

#cfcc2e text on a black background

contrast 12.33:1

Card sample

#cfcc2e text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcc2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcc2e in the Color Lab