Skip to content

#dfd45f

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

RGB
223, 212, 95
HSL
55°, 67%, 62%
CMYK
0, 5, 57, 13
Luminance
0.6360

Every format

HEX#dfd45f
RGBrgb(223, 212, 95)
HSLhsl(55, 67%, 62%)
CMYKcmyk(0%, 5%, 57%, 13%)
LABlab(83.8 -10.7 58.0)
LCHlch(83.8 59.0 100.5)
OKLCHoklch(0.856 0.138 103.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green83.1%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow57.4%
Key (black)12.5%

Color previews

#dfd45f text on a black background

contrast 13.72:1

Card sample

#dfd45f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd45f in the Color Lab