Skip to content

#42ef1f

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

RGB
66, 239, 31
HSL
110°, 87%, 53%
CMYK
72, 0, 87, 6
Luminance
0.6299

Every format

HEX#42ef1f
RGBrgb(66, 239, 31)
HSLhsl(110, 87%, 53%)
CMYKcmyk(72%, 0%, 87%, 6%)
LABlab(83.4 -75.9 76.4)
LCHlch(83.4 107.7 134.8)
OKLCHoklch(0.833 0.266 141.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#42ef1f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#42ef1f on black: 13.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.9%
Green93.7%
Blue12.2%

CMYK percentages

Cyan72.4%
Magenta0.0%
Yellow87.0%
Key (black)6.3%

Color previews

#42ef1f text on a black background

contrast 13.60:1

Card sample

#42ef1f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 239, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 239, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42ef1f;
background: linear-gradient(135deg, #42ef1f, #1FEF87);

Monochromatic scale

Palettes built from #42ef1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #42ef1f in the Color Lab