Skip to content

#d4eb5f

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

RGB
212, 235, 95
HSL
70°, 78%, 65%
CMYK
10, 0, 60, 8
Luminance
0.7424

Every format

HEX#d4eb5f
RGBrgb(212, 235, 95)
HSLhsl(70, 78%, 65%)
CMYKcmyk(10%, 0%, 60%, 8%)
LABlab(89.0 -26.4 63.6)
LCHlch(89.0 68.9 112.5)
OKLCHoklch(0.896 0.165 117.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4eb5f on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#d4eb5f on black: 15.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green92.2%
Blue37.3%

CMYK percentages

Cyan9.8%
Magenta0.0%
Yellow59.6%
Key (black)7.8%

Color previews

#d4eb5f text on a black background

contrast 15.85:1

Card sample

#d4eb5f text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 235, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 235, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4eb5f;
background: linear-gradient(135deg, #d4eb5f, #77EB5F);

Monochromatic scale

Palettes built from #d4eb5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4eb5f in the Color Lab