Skip to content

#dfb50b

a balanced, electric yellow · cool · closest name: gold

RGB
223, 181, 11
HSL
48°, 91%, 46%
CMYK
0, 19, 95, 13
Luminance
0.4876

Every format

HEX#dfb50b
RGBrgb(223, 181, 11)
HSLhsl(48, 91%, 46%)
CMYKcmyk(0%, 19%, 95%, 13%)
LABlab(75.3 1.9 76.3)
LCHlch(75.3 76.4 88.6)
OKLCHoklch(0.788 0.160 91.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb50b on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#dfb50b on black: 10.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green71.0%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow95.1%
Key (black)12.5%

Color previews

#dfb50b text on a black background

contrast 10.75:1

Card sample

#dfb50b text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb50b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb50b in the Color Lab