Skip to content

#d2f040

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

RGB
210, 240, 64
HSL
70°, 85%, 60%
CMYK
13, 0, 73, 6
Luminance
0.7639

Every format

HEX#d2f040
RGBrgb(210, 240, 64)
HSLhsl(70, 85%, 60%)
CMYKcmyk(13%, 0%, 73%, 6%)
LABlab(90.0 -31.4 76.2)
LCHlch(90.0 82.4 112.4)
OKLCHoklch(0.903 0.193 119.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2f040 on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#d2f040 on black: 16.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green94.1%
Blue25.1%

CMYK percentages

Cyan12.5%
Magenta0.0%
Yellow73.3%
Key (black)5.9%

Color previews

#d2f040 text on a black background

contrast 16.28:1

Card sample

#d2f040 text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 240, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 240, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2f040;
background: linear-gradient(135deg, #d2f040, #5DF040);

Monochromatic scale

Palettes built from #d2f040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2f040 in the Color Lab