Skip to content

#dfd45b

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

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

Every format

HEX#dfd45b
RGBrgb(223, 212, 91)
HSLhsl(55, 67%, 62%)
CMYKcmyk(0%, 5%, 59%, 13%)
LABlab(83.7 -11.0 59.8)
LCHlch(83.7 60.8 100.4)
OKLCHoklch(0.856 0.142 104.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green83.1%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow59.2%
Key (black)12.5%

Color previews

#dfd45b text on a black background

contrast 13.71:1

Card sample

#dfd45b text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd45b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd45b in the Color Lab