Skip to content

#decc7c

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

RGB
222, 204, 124
HSL
49°, 60%, 68%
CMYK
0, 8, 44, 13
Luminance
0.6017

Every format

HEX#decc7c
RGBrgb(222, 204, 124)
HSLhsl(49, 60%, 68%)
CMYKcmyk(0%, 8%, 44%, 13%)
LABlab(81.9 -4.6 42.0)
LCHlch(81.9 42.3 96.2)
OKLCHoklch(0.843 0.102 97.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#decc7c on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#decc7c on black: 13.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green80.0%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow44.1%
Key (black)12.9%

Color previews

#decc7c text on a black background

contrast 13.03:1

Card sample

#decc7c text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decc7c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decc7c in the Color Lab