Skip to content

#dccc5f

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

RGB
220, 204, 95
HSL
52°, 64%, 62%
CMYK
0, 7, 57, 14
Luminance
0.5923

Every format

HEX#dccc5f
RGBrgb(220, 204, 95)
HSLhsl(52, 64%, 62%)
CMYKcmyk(0%, 7%, 57%, 14%)
LABlab(81.4 -7.9 55.3)
LCHlch(81.4 55.9 98.1)
OKLCHoklch(0.837 0.131 101.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.3%
Green80.0%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta7.3%
Yellow56.8%
Key (black)13.7%

Color previews

#dccc5f text on a black background

contrast 12.85:1

Card sample

#dccc5f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dccc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dccc5f in the Color Lab