Skip to content

#dfb34c

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

RGB
223, 179, 76
HSL
42°, 70%, 59%
CMYK
0, 20, 66, 13
Luminance
0.4845

Every format

HEX#dfb34c
RGBrgb(223, 179, 76)
HSLhsl(42, 70%, 59%)
CMYKcmyk(0%, 20%, 66%, 13%)
LABlab(75.1 5.1 57.0)
LCHlch(75.1 57.2 84.9)
OKLCHoklch(0.787 0.130 85.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb34c on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#dfb34c on black: 10.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green70.2%
Blue29.8%

CMYK percentages

Cyan0.0%
Magenta19.7%
Yellow65.9%
Key (black)12.5%

Color previews

#dfb34c text on a black background

contrast 10.69:1

Card sample

#dfb34c text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb34c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb34c in the Color Lab