Skip to content

#dfd97b

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

RGB
223, 217, 123
HSL
56°, 61%, 68%
CMYK
0, 3, 45, 13
Luminance
0.6674

Every format

HEX#dfd97b
RGBrgb(223, 217, 123)
HSLhsl(56, 61%, 68%)
CMYKcmyk(0%, 3%, 45%, 13%)
LABlab(85.4 -10.9 46.8)
LCHlch(85.4 48.1 103.1)
OKLCHoklch(0.870 0.117 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd97b on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#dfd97b on black: 14.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.1%
Blue48.2%

CMYK percentages

Cyan0.0%
Magenta2.7%
Yellow44.8%
Key (black)12.5%

Color previews

#dfd97b text on a black background

contrast 14.35:1

Card sample

#dfd97b text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd97b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd97b in the Color Lab