Skip to content

#dfd02f

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

RGB
223, 208, 47
HSL
55°, 73%, 53%
CMYK
0, 7, 79, 13
Luminance
0.6100

Every format

HEX#dfd02f
RGBrgb(223, 208, 47)
HSLhsl(55, 73%, 53%)
CMYKcmyk(0%, 7%, 79%, 13%)
LABlab(82.4 -11.2 74.7)
LCHlch(82.4 75.5 98.5)
OKLCHoklch(0.844 0.167 103.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd02f on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#dfd02f on black: 13.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green81.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta6.7%
Yellow78.9%
Key (black)12.5%

Color previews

#dfd02f text on a black background

contrast 13.20:1

Card sample

#dfd02f text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 208, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 208, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd02f;
background: linear-gradient(135deg, #dfd02f, #79DF2F);

Monochromatic scale

Palettes built from #dfd02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd02f in the Color Lab