Skip to content

#cfcf49

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

RGB
207, 207, 73
HSL
60°, 58%, 55%
CMYK
0, 0, 65, 19
Luminance
0.5837

Every format

HEX#cfcf49
RGBrgb(207, 207, 73)
HSLhsl(60, 58%, 55%)
CMYKcmyk(0%, 0%, 65%, 19%)
LABlab(81.0 -16.3 63.9)
LCHlch(81.0 66.0 104.3)
OKLCHoklch(0.830 0.153 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcf49 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#cfcf49 on black: 12.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green81.2%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow64.7%
Key (black)18.8%

Color previews

#cfcf49 text on a black background

contrast 12.67:1

Card sample

#cfcf49 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcf49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcf49 in the Color Lab