Skip to content

#cfcb2c

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

RGB
207, 203, 44
HSL
59°, 65%, 49%
CMYK
0, 2, 79, 19
Luminance
0.5616

Every format

HEX#cfcb2c
RGBrgb(207, 203, 44)
HSLhsl(59, 65%, 49%)
CMYKcmyk(0%, 2%, 79%, 19%)
LABlab(79.7 -15.6 72.7)
LCHlch(79.7 74.3 102.1)
OKLCHoklch(0.820 0.166 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green79.6%
Blue17.3%

CMYK percentages

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

Color previews

#cfcb2c text on a black background

contrast 12.23:1

Card sample

#cfcb2c text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcb2c in the Color Lab