Skip to content

#d7f252

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

RGB
215, 242, 82
HSL
70°, 86%, 64%
CMYK
11, 0, 66, 5
Luminance
0.7856

Every format

HEX#d7f252
RGBrgb(215, 242, 82)
HSLhsl(70, 86%, 64%)
CMYKcmyk(11%, 0%, 66%, 5%)
LABlab(91.0 -29.4 71.0)
LCHlch(91.0 76.8 112.5)
OKLCHoklch(0.913 0.182 118.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red84.3%
Green94.9%
Blue32.2%

CMYK percentages

Cyan11.2%
Magenta0.0%
Yellow66.1%
Key (black)5.1%

Color previews

#d7f252 text on a black background

contrast 16.71:1

Card sample

#d7f252 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 242, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 242, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7f252;
background: linear-gradient(135deg, #d7f252, #6CF252);

Monochromatic scale

Palettes built from #d7f252

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7f252 in the Color Lab