Skip to content

#d7df5b

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

RGB
215, 223, 91
HSL
64°, 67%, 62%
CMYK
4, 0, 59, 13
Luminance
0.6798

Every format

HEX#d7df5b
RGBrgb(215, 223, 91)
HSLhsl(64, 67%, 62%)
CMYKcmyk(4%, 0%, 59%, 13%)
LABlab(86.0 -19.7 62.1)
LCHlch(86.0 65.1 107.6)
OKLCHoklch(0.873 0.154 112.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d7df5b on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#d7df5b on black: 14.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green87.5%
Blue35.7%

CMYK percentages

Cyan3.6%
Magenta0.0%
Yellow59.2%
Key (black)12.5%

Color previews

#d7df5b text on a black background

contrast 14.60:1

Card sample

#d7df5b text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d7df5b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7df5b in the Color Lab