Skip to content

#cfcc4f

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

RGB
207, 204, 79
HSL
59°, 57%, 56%
CMYK
0, 1, 62, 19
Luminance
0.5702

Every format

HEX#cfcc4f
RGBrgb(207, 204, 79)
HSLhsl(59, 57%, 56%)
CMYKcmyk(0%, 1%, 62%, 19%)
LABlab(80.2 -14.4 60.7)
LCHlch(80.2 62.4 103.4)
OKLCHoklch(0.824 0.145 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcc4f on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cfcc4f on black: 12.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green80.0%
Blue31.0%

CMYK percentages

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

Color previews

#cfcc4f text on a black background

contrast 12.40:1

Card sample

#cfcc4f text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcc4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcc4f in the Color Lab