Skip to content

#dcdc7f

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

RGB
220, 220, 127
HSL
60°, 57%, 68%
CMYK
0, 0, 42, 14
Luminance
0.6793

Every format

HEX#dcdc7f
RGBrgb(220, 220, 127)
HSLhsl(60, 57%, 68%)
CMYKcmyk(0%, 0%, 42%, 14%)
LABlab(86.0 -13.2 45.6)
LCHlch(86.0 47.4 106.1)
OKLCHoklch(0.875 0.116 108.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dcdc7f on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#dcdc7f on black: 14.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green86.3%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow42.3%
Key (black)13.7%

Color previews

#dcdc7f text on a black background

contrast 14.59:1

Card sample

#dcdc7f text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dcdc7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dcdc7f in the Color Lab