Skip to content

#cccc4f

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

RGB
204, 204, 79
HSL
60°, 55%, 56%
CMYK
0, 0, 61, 20
Luminance
0.5659

Every format

HEX#cccc4f
RGBrgb(204, 204, 79)
HSLhsl(60, 55%, 56%)
CMYKcmyk(0%, 0%, 61%, 20%)
LABlab(80.0 -15.7 60.3)
LCHlch(80.0 62.3 104.5)
OKLCHoklch(0.822 0.146 109.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccc4f on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cccc4f on black: 12.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green80.0%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow61.3%
Key (black)20.0%

Color previews

#cccc4f text on a black background

contrast 12.32:1

Card sample

#cccc4f text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccc4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccc4f in the Color Lab