Skip to content

#2ff04f

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

RGB
47, 240, 79
HSL
130°, 87%, 56%
CMYK
80, 0, 67, 6
Luminance
0.6349

At a glance

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

Hex
#2ff04f
Hue
130°
green
Saturation
87%
electric
Lightness
56%
balanced
Brightness
94%
HSV value
Perceived
74%
weighted brightness
Luminance
0.6349
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.70:1
Closest name
Lime
ΔE2000 5.2
Where it sits
Hue130° of 360°
Saturation87%
Lightness56%
Temperature
Warm ← → Cool67% 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#2ff04f
RGBrgb(47, 240, 79)
HSLhsl(130, 87%, 56%)
CMYKcmyk(80%, 0%, 67%, 6%)
LABlab(83.7 -75.7 62.4)
LCHlch(83.7 98.1 140.5)
OKLCHoklch(0.835 0.250 144.9)
Decimal3141711
Display P3color(display-p3 0.184 0.941 0.310)

Copy-ready code

/* CSS */
color: #2ff04f;
background-color: #2ff04f;
/* Tailwind (arbitrary) */
class="text-[#2ff04f] bg-[#2ff04f]"
/* SCSS */
$brand: #2ff04f;
/* SwiftUI */
Color(red: 0.184, green: 0.941, blue: 0.310)
/* Android */
Color.parseColor("#2ff04f")
/* Flutter */
Color(0xFF2FF04F)
/* Python / OpenCV (BGR) */
(79, 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 #2ff04f · 13.70:1
Use #000000AAA at every size.
Aa
White text · 1.53:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.70:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2ff04f as text scores 1.53:1 on white and 13.70:1 on black.

Accessibility — WCAG contrast

Aa
#2ff04f on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#2ff04f on black: 13.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F4D938
deuteranopia · #E0CB5E
tritanopia · #00EACF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2ff04f 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.

#F2FDF4
#E5FAE9
#C4F7CD
#96F7A6
#62F47A
#2ff04f
#11E433
#0EBE2B
#0B9822
#0C6E1D
#084512
Base = 500Lightest = 50 · #F2FDF4Darkest = 950 · #084512
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FAE9;
  --brand-200: #C4F7CD;
  --brand-300: #96F7A6;
  --brand-400: #62F47A;
  --brand-500: #2ff04f;
  --brand-600: #11E433;
  --brand-700: #0EBE2B;
  --brand-800: #0B9822;
  --brand-900: #0C6E1D;
  --brand-950: #084512;
  --brand: #2ff04f;
  --brand-ink: #000000;
}

Colors that work with #2ff04f

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#C0EDC7
Hairlines and dividers
Muted text#4B9B58
Captions on the surface
Accent#E32BF4
Second voice, not a rival
Dark variant#09771B
Hover, pressed, headers
Light variant#E7FDEB
Selected rows, tints
Dark surface#142416
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 #2ff04f

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#F02FD0
Analogous left#70F02F
Analogous right#2FF0AF
Split-complement 1#AF2FF0
Split-complement 2#F02F70
Triadic 1#4F2FF0
Triadic 2#F04F2F
Tetradic#2F70F0

RGB percentages

Red18.4%
Green94.1%
Blue31.0%

CMYK percentages

Cyan80.4%
Magenta0.0%
Yellow67.1%
Key (black)5.9%

Color previews

#2ff04f text on a black background

contrast 13.70:1

Card sample

#2ff04f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ff04f

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.

#2ff04f 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.

#2ff04f, answered

What color is #2ff04f?

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

What is the RGB value of #2ff04f?

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

Is #2ff04f a light or a dark color?

It is a light color. Relative luminance is 0.6349 and perceived brightness is 74%, so black text on it reaches 13.70:1.

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

Black. It scores 13.70:1 against #2ff04f, versus 1.53:1 for white — AAA at any size.

What is the complementary color of #2ff04f?

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

What colors go well with #2ff04f?

For interface work: #F4FAF5 as the surface, #C0EDC7 for borders, #4B9B58 for secondary text, #E32BF4 as an accent and #09771B for hover and pressed states. For a palette, the analogous pair #70F02F and #2FF0AF stays calm, while #F02FD0 is the loudest partner.

What is #2ff04f in CMYK for printing?

cmyk(80%, 0%, 67%, 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 #2ff04f warm or cool?

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

Work with #2ff04f in the Color Lab