Skip to content

#dfb540

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

RGB
223, 181, 64
HSL
44°, 71%, 56%
CMYK
0, 19, 71, 13
Luminance
0.4911

Every format

HEX#dfb540
RGBrgb(223, 181, 64)
HSLhsl(44, 71%, 56%)
CMYKcmyk(0%, 19%, 71%, 13%)
LABlab(75.5 3.4 62.4)
LCHlch(75.5 62.5 86.9)
OKLCHoklch(0.790 0.139 88.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb540 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#dfb540 on black: 10.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green71.0%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow71.3%
Key (black)12.5%

Color previews

#dfb540 text on a black background

contrast 10.82:1

Card sample

#dfb540 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb540

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb540 in the Color Lab