Skip to content

#dfdf42

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

RGB
223, 223, 66
HSL
60°, 71%, 57%
CMYK
0, 0, 70, 13
Luminance
0.6886

Every format

HEX#dfdf42
RGBrgb(223, 223, 66)
HSLhsl(60, 71%, 57%)
CMYKcmyk(0%, 0%, 70%, 13%)
LABlab(86.4 -17.9 72.4)
LCHlch(86.4 74.6 103.9)
OKLCHoklch(0.877 0.170 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf42 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf42 on black: 14.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue25.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow70.4%
Key (black)12.5%

Color previews

#dfdf42 text on a black background

contrast 14.77:1

Card sample

#dfdf42 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf42

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf42 in the Color Lab