Skip to content

#dfdf56

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

RGB
223, 223, 86
HSL
60°, 68%, 61%
CMYK
0, 0, 61, 13
Luminance
0.6914

Every format

HEX#dfdf56
RGBrgb(223, 223, 86)
HSLhsl(60, 68%, 61%)
CMYKcmyk(0%, 0%, 61%, 13%)
LABlab(86.6 -16.8 65.0)
LCHlch(86.6 67.1 104.5)
OKLCHoklch(0.878 0.157 109.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue33.7%

CMYK percentages

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

Color previews

#dfdf56 text on a black background

contrast 14.83:1

Card sample

#dfdf56 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf56 in the Color Lab