Skip to content

#cfcf41

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

RGB
207, 207, 65
HSL
60°, 60%, 53%
CMYK
0, 0, 69, 19
Luminance
0.5827

Every format

HEX#cfcf41
RGBrgb(207, 207, 65)
HSLhsl(60, 60%, 53%)
CMYKcmyk(0%, 0%, 69%, 19%)
LABlab(80.9 -16.7 66.9)
LCHlch(80.9 69.0 104.0)
OKLCHoklch(0.830 0.158 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green81.2%
Blue25.5%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow68.6%
Key (black)18.8%

Color previews

#cfcf41 text on a black background

contrast 12.65:1

Card sample

#cfcf41 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcf41

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcf41 in the Color Lab