Skip to content

#2ff042

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

RGB
47, 240, 66
HSL
126°, 87%, 56%
CMYK
80, 0, 73, 6
Luminance
0.6332

At a glance

Every number on this page in one read: what #2ff042 is made of, how bright it looks, and which way it leans.

Hex
#2ff042
Hue
126°
green
Saturation
87%
electric
Lightness
56%
balanced
Brightness
94%
HSV value
Perceived
73%
weighted brightness
Luminance
0.6332
WCAG relative
Temperature
Cool
65/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.66:1
Closest name
Lime
ΔE2000 4.4
Where it sits
Hue126° of 360°
Saturation87%
Lightness56%
Temperature
Warm ← → Cool65% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2ff042
RGBrgb(47, 240, 66)
HSLhsl(126, 87%, 56%)
CMYKcmyk(80%, 0%, 73%, 6%)
LABlab(83.6 -76.8 67.0)
LCHlch(83.6 102.0 138.9)
OKLCHoklch(0.834 0.257 143.8)
Decimal3141698
Display P3color(display-p3 0.184 0.941 0.259)

Copy-ready code

/* CSS */
color: #2ff042;
background-color: #2ff042;
/* Tailwind (arbitrary) */
class="text-[#2ff042] bg-[#2ff042]"
/* SCSS */
$brand: #2ff042;
/* SwiftUI */
Color(red: 0.184, green: 0.941, blue: 0.259)
/* Android */
Color.parseColor("#2ff042")
/* Flutter */
Color(0xFF2FF042)
/* Python / OpenCV (BGR) */
(66, 240, 47)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #2ff042 · 13.66:1
Use #000000AAA at every size.
Aa
White text · 1.54:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.66:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2ff042 as text scores 1.54:1 on white and 13.66:1 on black.

Accessibility — WCAG contrast

Aa
#2ff042 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#2ff042 on black: 13.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F5D921
deuteranopia · #E0CB55
tritanopia · #00E9CE

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2ff042 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2FDF3
#E5FAE7
#C4F7C9
#96F7A0
#62F470
#2ff042
#11E425
#0EBE1F
#0B9819
#0C6E16
#08450E
Base = 500Lightest = 50 · #F2FDF3Darkest = 950 · #08450E
:root {
  --brand-50: #F2FDF3;
  --brand-100: #E5FAE7;
  --brand-200: #C4F7C9;
  --brand-300: #96F7A0;
  --brand-400: #62F470;
  --brand-500: #2ff042;
  --brand-600: #11E425;
  --brand-700: #0EBE1F;
  --brand-800: #0B9819;
  --brand-900: #0C6E16;
  --brand-950: #08450E;
  --brand: #2ff042;
  --brand-ink: #000000;
}

Colors that work with #2ff042

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4FAF5
Tinted page background
Border#C0EDC4
Hairlines and dividers
Muted text#4B9B52
Captions on the surface
Accent#D62BF4
Second voice, not a rival
Dark variant#097713
Hover, pressed, headers
Light variant#E7FDE9
Selected rows, tints
Dark surface#142415
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2ff042

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F02FDD
Analogous left#7DF02F
Analogous right#2FF0A3
Split-complement 1#A32FF0
Split-complement 2#F02F7D
Triadic 1#422FF0
Triadic 2#F0422F
Tetradic#2F7DF0

RGB percentages

Red18.4%
Green94.1%
Blue25.9%

CMYK percentages

Cyan80.4%
Magenta0.0%
Yellow72.5%
Key (black)5.9%

Color previews

#2ff042 text on a black background

contrast 13.66:1

Card sample

#2ff042 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ff042

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2ff042 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2ff042, answered

What color is #2ff042?

#2ff042 is a balanced electric green, closest to Lime (ΔE2000 4.4). It sits at 126° on the hue wheel with 87% saturation and 56% lightness, which reads as cool.

What is the RGB value of #2ff042?

rgb(47, 240, 66) — 47 red, 240 green and 66 blue out of 255, or 18.4% / 94.1% / 25.9% by channel.

Is #2ff042 a light or a dark color?

It is a light color. Relative luminance is 0.6332 and perceived brightness is 73%, so black text on it reaches 13.66:1.

Should I use black or white text on #2ff042?

Black. It scores 13.66:1 against #2ff042, versus 1.54:1 for white — AAA at any size.

What is the complementary color of #2ff042?

#F02FDD sits directly opposite on the wheel. Softer options are the split-complements #A32FF0 and #F02F7D, which give the same contrast with far less vibration.

What colors go well with #2ff042?

For interface work: #F4FAF5 as the surface, #C0EDC4 for borders, #4B9B52 for secondary text, #D62BF4 as an accent and #097713 for hover and pressed states. For a palette, the analogous pair #7DF02F and #2FF0A3 stays calm, while #F02FDD is the loudest partner.

What is #2ff042 in CMYK for printing?

cmyk(80%, 0%, 73%, 6%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2ff042 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #63F02F; nudged cooler, #2DF289.

Work with #2ff042 in the Color Lab