Skip to content

#decc5f

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

RGB
222, 204, 95
HSL
52°, 66%, 62%
CMYK
0, 8, 57, 13
Luminance
0.5954

Every format

HEX#decc5f
RGBrgb(222, 204, 95)
HSLhsl(52, 66%, 62%)
CMYKcmyk(0%, 8%, 57%, 13%)
LABlab(81.6 -7.1 55.5)
LCHlch(81.6 56.0 97.3)
OKLCHoklch(0.839 0.131 100.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green80.0%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow57.2%
Key (black)12.9%

Color previews

#decc5f text on a black background

contrast 12.91:1

Card sample

#decc5f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decc5f in the Color Lab