Skip to content

#dfbd02

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

RGB
223, 189, 2
HSL
51°, 98%, 44%
CMYK
0, 15, 99, 13
Luminance
0.5209

Every format

HEX#dfbd02
RGBrgb(223, 189, 2)
HSLhsl(51, 98%, 44%)
CMYKcmyk(0%, 15%, 99%, 13%)
LABlab(77.3 -2.4 78.8)
LCHlch(77.3 78.8 91.7)
OKLCHoklch(0.804 0.165 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfbd02 on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#dfbd02 on black: 11.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green74.1%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta15.2%
Yellow99.1%
Key (black)12.5%

Color previews

#dfbd02 text on a black background

contrast 11.42:1

Card sample

#dfbd02 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfbd02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbd02 in the Color Lab