Skip to content

#cfcf29

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

RGB
207, 207, 41
HSL
60°, 67%, 49%
CMYK
0, 0, 80, 19
Luminance
0.5805

Every format

HEX#cfcf29
RGBrgb(207, 207, 41)
HSLhsl(60, 67%, 49%)
CMYKcmyk(0%, 0%, 80%, 19%)
LABlab(80.8 -17.7 74.4)
LCHlch(80.8 76.5 103.4)
OKLCHoklch(0.828 0.171 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcf29 on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cfcf29 on black: 12.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green81.2%
Blue16.1%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow80.2%
Key (black)18.8%

Color previews

#cfcf29 text on a black background

contrast 12.61:1

Card sample

#cfcf29 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 207, 41, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 207, 41, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcf29;
background: linear-gradient(135deg, #cfcf29, #60CF29);

Monochromatic scale

Palettes built from #cfcf29

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcf29 in the Color Lab