Skip to content

#dfd50f

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

RGB
223, 213, 15
HSL
57°, 87%, 47%
CMYK
0, 5, 93, 13
Luminance
0.6331

Every format

HEX#dfd50f
RGBrgb(223, 213, 15)
HSLhsl(57, 87%, 47%)
CMYKcmyk(0%, 5%, 93%, 13%)
LABlab(83.6 -14.4 82.1)
LCHlch(83.6 83.3 100.0)
OKLCHoklch(0.854 0.180 106.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd50f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#dfd50f on black: 13.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green83.5%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta4.5%
Yellow93.3%
Key (black)12.5%

Color previews

#dfd50f text on a black background

contrast 13.66:1

Card sample

#dfd50f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 213, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 213, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd50f;
background: linear-gradient(135deg, #dfd50f, #5EDF0F);

Monochromatic scale

Palettes built from #dfd50f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd50f in the Color Lab