Skip to content

#d2f41f

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

RGB
210, 244, 31
HSL
70°, 91%, 54%
CMYK
14, 0, 87, 4
Luminance
0.7850

Every format

HEX#d2f41f
RGBrgb(210, 244, 31)
HSLhsl(70, 91%, 54%)
CMYKcmyk(14%, 0%, 87%, 4%)
LABlab(91.0 -34.3 85.2)
LCHlch(91.0 91.8 111.9)
OKLCHoklch(0.911 0.210 119.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green95.7%
Blue12.2%

CMYK percentages

Cyan13.9%
Magenta0.0%
Yellow87.3%
Key (black)4.3%

Color previews

#d2f41f text on a black background

contrast 16.70:1

Card sample

#d2f41f text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 244, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 244, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2f41f;
background: linear-gradient(135deg, #d2f41f, #44F41F);

Monochromatic scale

Palettes built from #d2f41f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2f41f in the Color Lab