Skip to content

#2df228

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

RGB
45, 242, 40
HSL
119°, 89%, 55%
CMYK
81, 0, 84, 5
Luminance
0.6422

Every format

HEX#2df228
RGBrgb(45, 242, 40)
HSLhsl(119, 89%, 55%)
CMYKcmyk(81%, 0%, 84%, 5%)
LABlab(84.1 -79.2 75.0)
LCHlch(84.1 109.0 136.6)
OKLCHoklch(0.837 0.271 142.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2df228 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#2df228 on black: 13.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green94.9%
Blue15.7%

CMYK percentages

Cyan81.4%
Magenta0.0%
Yellow83.5%
Key (black)5.1%

Color previews

#2df228 text on a black background

contrast 13.84:1

Card sample

#2df228 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 242, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 242, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2df228;
background: linear-gradient(135deg, #2df228, #28F2AA);

Monochromatic scale

Palettes built from #2df228

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2df228 in the Color Lab