Skip to content

#dfba1b

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

RGB
223, 186, 27
HSL
49°, 78%, 49%
CMYK
0, 17, 88, 13
Luminance
0.5088

Every format

HEX#dfba1b
RGBrgb(223, 186, 27)
HSLhsl(49, 78%, 49%)
CMYKcmyk(0%, 17%, 88%, 13%)
LABlab(76.6 -0.5 74.8)
LCHlch(76.6 74.8 90.4)
OKLCHoklch(0.798 0.159 93.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfba1b on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#dfba1b on black: 11.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green72.9%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow87.9%
Key (black)12.5%

Color previews

#dfba1b text on a black background

contrast 11.18:1

Card sample

#dfba1b text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 186, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 186, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfba1b;
background: linear-gradient(135deg, #dfba1b, #81DF1B);

Monochromatic scale

Palettes built from #dfba1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfba1b in the Color Lab