Skip to content

#dfdf18

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

RGB
223, 223, 24
HSL
60°, 81%, 48%
CMYK
0, 0, 89, 13
Luminance
0.6853

Every format

HEX#dfdf18
RGBrgb(223, 223, 24)
HSLhsl(60, 81%, 48%)
CMYKcmyk(0%, 0%, 89%, 13%)
LABlab(86.3 -19.2 82.9)
LCHlch(86.3 85.1 103.0)
OKLCHoklch(0.875 0.187 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue9.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow89.2%
Key (black)12.5%

Color previews

#dfdf18 text on a black background

contrast 14.71:1

Card sample

#dfdf18 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf18

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf18 in the Color Lab