Skip to content

#dfd45c

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

RGB
223, 212, 92
HSL
55°, 67%, 62%
CMYK
0, 5, 59, 13
Luminance
0.6355

Every format

HEX#dfd45c
RGBrgb(223, 212, 92)
HSLhsl(55, 67%, 62%)
CMYKcmyk(0%, 5%, 59%, 13%)
LABlab(83.7 -10.9 59.3)
LCHlch(83.7 60.3 100.4)
OKLCHoklch(0.856 0.141 104.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd45c on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#dfd45c on black: 13.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green83.1%
Blue36.1%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow58.7%
Key (black)12.5%

Color previews

#dfd45c text on a black background

contrast 13.71:1

Card sample

#dfd45c text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 212, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 212, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd45c;
background: linear-gradient(135deg, #dfd45c, #93DF5C);

Monochromatic scale

Palettes built from #dfd45c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd45c in the Color Lab