Skip to content

#dfdf54

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

RGB
223, 223, 84
HSL
60°, 69%, 60%
CMYK
0, 0, 62, 13
Luminance
0.6910

Every format

HEX#dfdf54
RGBrgb(223, 223, 84)
HSLhsl(60, 69%, 60%)
CMYKcmyk(0%, 0%, 62%, 13%)
LABlab(86.6 -16.9 65.8)
LCHlch(86.6 67.9 104.4)
OKLCHoklch(0.878 0.158 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue32.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow62.3%
Key (black)12.5%

Color previews

#dfdf54 text on a black background

contrast 14.82:1

Card sample

#dfdf54 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf54

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf54 in the Color Lab