Skip to content

#cccf8c

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

RGB
204, 207, 140
HSL
63°, 41%, 68%
CMYK
1, 0, 32, 19
Luminance
0.5936

Every format

HEX#cccf8c
RGBrgb(204, 207, 140)
HSLhsl(63, 41%, 68%)
CMYKcmyk(1%, 0%, 32%, 19%)
LABlab(81.5 -11.4 33.0)
LCHlch(81.5 34.9 109.0)
OKLCHoklch(0.836 0.087 110.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cccf8c on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#cccf8c on black: 12.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green81.2%
Blue54.9%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow32.4%
Key (black)18.8%

Color previews

#cccf8c text on a black background

contrast 12.87:1

Card sample

#cccf8c text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cccf8c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cccf8c in the Color Lab