Skip to content

#ccc97f

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

RGB
204, 201, 127
HSL
58°, 43%, 65%
CMYK
0, 2, 38, 20
Luminance
0.5614

Every format

HEX#ccc97f
RGBrgb(204, 201, 127)
HSLhsl(58, 43%, 65%)
CMYKcmyk(0%, 2%, 38%, 20%)
LABlab(79.7 -9.9 37.4)
LCHlch(79.7 38.6 104.8)
OKLCHoklch(0.822 0.095 106.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc97f on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#ccc97f on black: 12.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green78.8%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow37.7%
Key (black)20.0%

Color previews

#ccc97f text on a black background

contrast 12.23:1

Card sample

#ccc97f text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc97f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccc97f in the Color Lab