Skip to content

#dfcc5f

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

RGB
223, 204, 95
HSL
51°, 67%, 62%
CMYK
0, 9, 57, 13
Luminance
0.5970

Every format

HEX#dfcc5f
RGBrgb(223, 204, 95)
HSLhsl(51, 67%, 62%)
CMYKcmyk(0%, 9%, 57%, 13%)
LABlab(81.7 -6.7 55.7)
LCHlch(81.7 56.1 96.8)
OKLCHoklch(0.840 0.131 99.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfcc5f on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#dfcc5f on black: 12.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green80.0%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta8.5%
Yellow57.4%
Key (black)12.5%

Color previews

#dfcc5f text on a black background

contrast 12.94:1

Card sample

#dfcc5f text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcc5f in the Color Lab