Skip to content

#cfcc8b

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

RGB
207, 204, 139
HSL
57°, 42%, 68%
CMYK
0, 1, 33, 19
Luminance
0.5832

Every format

HEX#cfcc8b
RGBrgb(207, 204, 139)
HSLhsl(57, 42%, 68%)
CMYKcmyk(0%, 1%, 33%, 19%)
LABlab(80.9 -8.8 32.8)
LCHlch(80.9 34.0 105.1)
OKLCHoklch(0.832 0.085 105.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcc8b on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#cfcc8b on black: 12.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green80.0%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow32.9%
Key (black)18.8%

Color previews

#cfcc8b text on a black background

contrast 12.66:1

Card sample

#cfcc8b text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcc8b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfcc8b in the Color Lab