Skip to content

#cccf72

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

RGB
204, 207, 114
HSL
62°, 49%, 63%
CMYK
1, 0, 45, 19
Luminance
0.5868

Every format

HEX#cccf72
RGBrgb(204, 207, 114)
HSLhsl(62, 49%, 63%)
CMYKcmyk(1%, 0%, 45%, 19%)
LABlab(81.1 -14.3 45.6)
LCHlch(81.1 47.8 107.4)
OKLCHoklch(0.832 0.117 110.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccf72 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#cccf72 on black: 12.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green81.2%
Blue44.7%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow44.9%
Key (black)18.8%

Color previews

#cccf72 text on a black background

contrast 12.74:1

Card sample

#cccf72 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccf72

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccf72 in the Color Lab