Skip to content

#dcdc5f

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

RGB
220, 220, 95
HSL
60°, 64%, 62%
CMYK
0, 0, 57, 14
Luminance
0.6723

Every format

HEX#dcdc5f
RGBrgb(220, 220, 95)
HSLhsl(60, 64%, 62%)
CMYKcmyk(0%, 0%, 57%, 14%)
LABlab(85.6 -15.9 60.0)
LCHlch(85.6 62.1 104.9)
OKLCHoklch(0.871 0.147 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dcdc5f on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#dcdc5f on black: 14.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green86.3%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow56.8%
Key (black)13.7%

Color previews

#dcdc5f text on a black background

contrast 14.45:1

Card sample

#dcdc5f text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dcdc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dcdc5f in the Color Lab