Skip to content

#cfcc4e

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

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

Every format

HEX#cfcc4e
RGBrgb(207, 204, 78)
HSLhsl(59, 57%, 56%)
CMYKcmyk(0%, 1%, 62%, 19%)
LABlab(80.2 -14.5 61.1)
LCHlch(80.2 62.8 103.3)
OKLCHoklch(0.824 0.146 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green80.0%
Blue30.6%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow62.3%
Key (black)18.8%

Color previews

#cfcc4e text on a black background

contrast 12.40:1

Card sample

#cfcc4e text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcc4e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcc4e in the Color Lab