Skip to content

#d2fa21

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

RGB
210, 250, 33
HSL
71°, 96%, 56%
CMYK
16, 0, 87, 2
Luminance
0.8218

Every format

HEX#d2fa21
RGBrgb(210, 250, 33)
HSLhsl(71, 96%, 56%)
CMYKcmyk(16%, 0%, 87%, 2%)
LABlab(92.7 -37.0 86.2)
LCHlch(92.7 93.8 113.2)
OKLCHoklch(0.924 0.216 120.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2fa21 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#d2fa21 on black: 17.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green98.0%
Blue12.9%

CMYK percentages

Cyan16.0%
Magenta0.0%
Yellow86.8%
Key (black)2.0%

Color previews

#d2fa21 text on a black background

contrast 17.44:1

Card sample

#d2fa21 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 250, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 250, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2fa21;
background: linear-gradient(135deg, #d2fa21, #41FA21);

Monochromatic scale

Palettes built from #d2fa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2fa21 in the Color Lab