Skip to content

#dfdf98

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

RGB
223, 223, 152
HSL
60°, 53%, 74%
CMYK
0, 0, 32, 13
Luminance
0.7073

Every format

HEX#dfdf98
RGBrgb(223, 223, 152)
HSLhsl(60, 53%, 74%)
CMYKcmyk(0%, 0%, 32%, 13%)
LABlab(87.3 -10.7 34.9)
LCHlch(87.3 36.5 107.1)
OKLCHoklch(0.887 0.091 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf98 on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf98 on black: 15.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue59.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow31.8%
Key (black)12.5%

Color previews

#dfdf98 text on a black background

contrast 15.15:1

Card sample

#dfdf98 text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf98 in the Color Lab