Skip to content

#dfd402

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

RGB
223, 212, 2
HSL
57°, 98%, 44%
CMYK
0, 5, 99, 13
Luminance
0.6278

Every format

HEX#dfd402
RGBrgb(223, 212, 2)
HSLhsl(57, 98%, 44%)
CMYKcmyk(0%, 5%, 99%, 13%)
LABlab(83.3 -14.1 83.1)
LCHlch(83.3 84.3 99.6)
OKLCHoklch(0.852 0.181 105.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd402 on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#dfd402 on black: 13.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green83.1%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow99.1%
Key (black)12.5%

Color previews

#dfd402 text on a black background

contrast 13.56:1

Card sample

#dfd402 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 212, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 212, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd402;
background: linear-gradient(135deg, #dfd402, #57DF02);

Monochromatic scale

Palettes built from #dfd402

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd402 in the Color Lab