Skip to content

#dfef5f

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

RGB
223, 239, 95
HSL
67°, 82%, 66%
CMYK
7, 0, 60, 6
Luminance
0.7825

Every format

HEX#dfef5f
RGBrgb(223, 239, 95)
HSLhsl(67, 82%, 66%)
CMYKcmyk(7%, 0%, 60%, 6%)
LABlab(90.9 -24.0 65.9)
LCHlch(90.9 70.1 110.0)
OKLCHoklch(0.913 0.167 115.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfef5f on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#dfef5f on black: 16.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green93.7%
Blue37.3%

CMYK percentages

Cyan6.7%
Magenta0.0%
Yellow60.3%
Key (black)6.3%

Color previews

#dfef5f text on a black background

contrast 16.65:1

Card sample

#dfef5f text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfef5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfef5f in the Color Lab