Skip to content

#2ffeb2

a balanced, electric green · cool · closest name: Medium Spring Green

RGB
47, 254, 178
HSL
158°, 99%, 59%
CMYK
82, 0, 30, 0
Luminance
0.7470

At a glance

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

Hex
#2ffeb2
Hue
158°
green
Saturation
99%
electric
Lightness
59%
balanced
Brightness
100%
HSV value
Perceived
81%
weighted brightness
Luminance
0.7470
WCAG relative
Temperature
Cool
78/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.94:1
Closest name
Medium Spring Green
ΔE2000 3.6
Where it sits
Hue158° of 360°
Saturation99%
Lightness59%
Temperature
Warm ← → Cool78% 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#2ffeb2
RGBrgb(47, 254, 178)
HSLhsl(158, 99%, 59%)
CMYKcmyk(82%, 0%, 30%, 0%)
LABlab(89.3 -65.0 23.0)
LCHlch(89.3 69.0 160.5)
OKLCHoklch(0.885 0.186 161.8)
Decimal3145394
Display P3color(display-p3 0.184 0.996 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ffeb2 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#2ffeb2 on black: 15.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FAEAAD
deuteranopia · #E2D9B7
tritanopia · #00FDEA

Color scale — 50 to 950

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

#F1FEF9
#E3FCF3
#C0FBE6
#8FFED6
#58FEC1
#2ffeb2
#01F49B
#01CB81
#01A267
#05754C
#034930
Base = 500Lightest = 50 · #F1FEF9Darkest = 950 · #034930
:root {
  --brand-50: #F1FEF9;
  --brand-100: #E3FCF3;
  --brand-200: #C0FBE6;
  --brand-300: #8FFED6;
  --brand-400: #58FEC1;
  --brand-500: #2ffeb2;
  --brand-600: #01F49B;
  --brand-700: #01CB81;
  --brand-800: #01A267;
  --brand-900: #05754C;
  --brand-950: #034930;
  --brand: #2ffeb2;
  --brand-ink: #000000;
}

Colors that work with #2ffeb2

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#F4FAF8
Tinted page background
Border#C0EDDC
Hairlines and dividers
Muted text#4B9B7D
Captions on the surface
Accent#FF2EAF
Second voice, not a rival
Dark variant#017F51
Hover, pressed, headers
Light variant#E6FFF6
Selected rows, tints
Dark surface#14241E
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 #2ffeb2

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#FE2F7B
Analogous left#2FFE4B
Analogous right#2FE2FE
Split-complement 1#FE2FE2
Split-complement 2#FE4B2F
Triadic 1#B22FFE
Triadic 2#FEB22F
Tetradic#4B2FFE

RGB percentages

Red18.4%
Green99.6%
Blue69.8%

CMYK percentages

Cyan81.5%
Magenta0.0%
Yellow29.9%
Key (black)0.4%

Color previews

#2ffeb2 text on a black background

contrast 15.94:1

Card sample

#2ffeb2 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ffeb2

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.

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

#2ffeb2, answered

What color is #2ffeb2?

#2ffeb2 is a balanced electric green, closest to Medium Spring Green (ΔE2000 3.6). It sits at 158° on the hue wheel with 99% saturation and 59% lightness, which reads as cool.

What is the RGB value of #2ffeb2?

rgb(47, 254, 178) — 47 red, 254 green and 178 blue out of 255, or 18.4% / 99.6% / 69.8% by channel.

Is #2ffeb2 a light or a dark color?

It is a light color. Relative luminance is 0.7470 and perceived brightness is 81%, so black text on it reaches 15.94:1.

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

Black. It scores 15.94:1 against #2ffeb2, versus 1.32:1 for white — AAA at any size.

What is the complementary color of #2ffeb2?

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

What colors go well with #2ffeb2?

For interface work: #F4FAF8 as the surface, #C0EDDC for borders, #4B9B7D for secondary text, #FF2EAF as an accent and #017F51 for hover and pressed states. For a palette, the analogous pair #2FFE4B and #2FE2FE stays calm, while #FE2F7B is the loudest partner.

What is #2ffeb2 in CMYK for printing?

cmyk(82%, 0%, 30%, 0%). 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 #2ffeb2 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2FFE66; nudged cooler, #2EFFFF.

Work with #2ffeb2 in the Color Lab