Skip to content

#dfd02c

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

RGB
223, 208, 44
HSL
55°, 74%, 52%
CMYK
0, 7, 80, 13
Luminance
0.6098

Every format

HEX#dfd02c
RGBrgb(223, 208, 44)
HSLhsl(55, 74%, 52%)
CMYKcmyk(0%, 7%, 80%, 13%)
LABlab(82.4 -11.3 75.5)
LCHlch(82.4 76.3 98.5)
OKLCHoklch(0.844 0.168 103.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green81.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta6.7%
Yellow80.3%
Key (black)12.5%

Color previews

#dfd02c text on a black background

contrast 13.20:1

Card sample

#dfd02c text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd02c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd02c in the Color Lab