Skip to content

#dfb402

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

RGB
223, 180, 2
HSL
48°, 98%, 44%
CMYK
0, 19, 99, 13
Luminance
0.4833

Every format

HEX#dfb402
RGBrgb(223, 180, 2)
HSLhsl(48, 98%, 44%)
CMYKcmyk(0%, 19%, 99%, 13%)
LABlab(75.0 2.3 77.1)
LCHlch(75.0 77.2 88.3)
OKLCHoklch(0.786 0.160 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb402 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#dfb402 on black: 10.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green70.6%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta19.3%
Yellow99.1%
Key (black)12.5%

Color previews

#dfb402 text on a black background

contrast 10.67:1

Card sample

#dfb402 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb402

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb402 in the Color Lab