Skip to content

#dfdf1b

a balanced, electric yellow · cool · closest name: yellow

RGB
223, 223, 27
HSL
60°, 78%, 49%
CMYK
0, 0, 88, 13
Luminance
0.6854

Every format

HEX#dfdf1b
RGBrgb(223, 223, 27)
HSLhsl(60, 78%, 49%)
CMYKcmyk(0%, 0%, 88%, 13%)
LABlab(86.3 -19.2 82.5)
LCHlch(86.3 84.7 103.1)
OKLCHoklch(0.875 0.186 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow87.9%
Key (black)12.5%

Color previews

#dfdf1b text on a black background

contrast 14.71:1

Card sample

#dfdf1b text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf1b in the Color Lab