Skip to content

#dfdf2b

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

RGB
223, 223, 43
HSL
60°, 74%, 52%
CMYK
0, 0, 81, 13
Luminance
0.6864

Every format

HEX#dfdf2b
RGBrgb(223, 223, 43)
HSLhsl(60, 74%, 52%)
CMYKcmyk(0%, 0%, 81%, 13%)
LABlab(86.3 -18.8 79.2)
LCHlch(86.3 81.4 103.3)
OKLCHoklch(0.876 0.181 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf2b on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf2b on black: 14.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow80.7%
Key (black)12.5%

Color previews

#dfdf2b text on a black background

contrast 14.73:1

Card sample

#dfdf2b text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 223, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 223, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfdf2b;
background: linear-gradient(135deg, #dfdf2b, #67DF2B);

Monochromatic scale

Palettes built from #dfdf2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf2b in the Color Lab