Skip to content

#2fa40c

a dark, electric green · cool · closest name: green

RGB
47, 164, 12
HSL
106°, 86%, 35%
CMYK
71, 0, 93, 36
Luminance
0.2718

Every format

HEX#2fa40c
RGBrgb(47, 164, 12)
HSLhsl(106, 86%, 35%)
CMYKcmyk(71%, 0%, 93%, 36%)
LABlab(59.1 -56.6 58.8)
LCHlch(59.1 81.6 133.9)
OKLCHoklch(0.629 0.201 140.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2fa40c on white: 3.26:1
AA ✗ fail · AA-large · AAA
Aa
#2fa40c on black: 6.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green64.3%
Blue4.7%

CMYK percentages

Cyan71.3%
Magenta0.0%
Yellow92.7%
Key (black)35.7%

Color previews

#2fa40c text on a black background

contrast 6.44:1

Card sample

#2fa40c text on a white background

contrast 3.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 164, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 164, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2fa40c;
background: linear-gradient(135deg, #2fa40c, #0CA44E);

Monochromatic scale

Palettes built from #2fa40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2fa40c in the Color Lab