Skip to content

#2ec77f

a balanced, vivid green · cool · closest name: Medium Sea Green

RGB
46, 199, 127
HSL
152°, 62%, 48%
CMYK
77, 0, 36, 22
Luminance
0.4296

At a glance

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

Hex
#2ec77f
Hue
152°
green
Saturation
62%
vivid
Lightness
48%
balanced
Brightness
78%
HSV value
Perceived
63%
weighted brightness
Luminance
0.4296
WCAG relative
Temperature
Cool
76/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
9.59:1
Closest name
Medium Sea Green
ΔE2000 5.4
Where it sits
Hue152° of 360°
Saturation62%
Lightness48%
Temperature
Warm ← → Cool76% 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#2ec77f
RGBrgb(46, 199, 127)
HSLhsl(152, 62%, 48%)
CMYKcmyk(77%, 0%, 36%, 22%)
LABlab(71.5 -55.3 25.2)
LCHlch(71.5 60.8 155.5)
OKLCHoklch(0.736 0.162 157.0)
Decimal3065727
Display P3color(display-p3 0.180 0.780 0.498)

Copy-ready code

/* CSS */
color: #2ec77f;
background-color: #2ec77f;
/* Tailwind (arbitrary) */
class="text-[#2ec77f] bg-[#2ec77f]"
/* SCSS */
$brand: #2ec77f;
/* SwiftUI */
Color(red: 0.180, green: 0.780, blue: 0.498)
/* Android */
Color.parseColor("#2ec77f")
/* Flutter */
Color(0xFF2EC77F)
/* Python / OpenCV (BGR) */
(127, 199, 46)

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 #2ec77f · 9.59:1
Use #000000AAA at every size.
Aa
White text · 2.19:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.59:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2ec77f as text scores 2.19:1 on white and 9.59:1 on black.

Accessibility — WCAG contrast

Aa
#2ec77f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#2ec77f on black: 9.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C6B77A
deuteranopia · #B3AA84
tritanopia · #00C5B5

Color scale — 50 to 950

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

#F4FBF8
#E8F7F0
#CCF0DF
#A4EAC9
#76DFAE
#49D593
#2ec77f
#26A66A
#1F8555
#1A603F
#103C28
Base = 600Lightest = 50 · #F4FBF8Darkest = 950 · #103C28
:root {
  --brand-50: #F4FBF8;
  --brand-100: #E8F7F0;
  --brand-200: #CCF0DF;
  --brand-300: #A4EAC9;
  --brand-400: #76DFAE;
  --brand-500: #49D593;
  --brand-600: #2ec77f;
  --brand-700: #26A66A;
  --brand-800: #1F8555;
  --brand-900: #1A603F;
  --brand-950: #103C28;
  --brand: #2ec77f;
  --brand-ink: #000000;
}

Colors that work with #2ec77f

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#C0EDD8
Hairlines and dividers
Muted text#4B9B75
Captions on the surface
Accent#CC299E
Second voice, not a rival
Dark variant#186842
Hover, pressed, headers
Light variant#EAFAF3
Selected rows, tints
Dark surface#14241D
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 #2ec77f

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#C72E76
Analogous left#2EC733
Analogous right#2EC2C7
Split-complement 1#C72EC2
Split-complement 2#C7332E
Triadic 1#7F2EC7
Triadic 2#C77F2E
Tetradic#332EC7

RGB percentages

Red18.0%
Green78.0%
Blue49.8%

CMYK percentages

Cyan76.9%
Magenta0.0%
Yellow36.2%
Key (black)22.0%

Color previews

#2ec77f text on a black background

contrast 9.59:1

Card sample

#2ec77f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(46, 199, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 199, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2ec77f;
background: linear-gradient(135deg, #2ec77f, #2EA9C7);

Monochromatic scale

Palettes built from #2ec77f

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.

#2ec77f 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

Converts to four-color process without much drama. Proof it anyway.

#2ec77f, answered

What color is #2ec77f?

#2ec77f is a balanced vivid green, closest to Medium Sea Green (ΔE2000 5.4). It sits at 152° on the hue wheel with 62% saturation and 48% lightness, which reads as cool.

What is the RGB value of #2ec77f?

rgb(46, 199, 127) — 46 red, 199 green and 127 blue out of 255, or 18% / 78% / 49.8% by channel.

Is #2ec77f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4296 and perceived brightness is 63%, so black text on it reaches 9.59:1.

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

Black. It scores 9.59:1 against #2ec77f, versus 2.19:1 for white — AAA at any size.

What is the complementary color of #2ec77f?

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

What colors go well with #2ec77f?

For interface work: #F4FAF8 as the surface, #C0EDD8 for borders, #4B9B75 for secondary text, #CC299E as an accent and #186842 for hover and pressed states. For a palette, the analogous pair #2EC733 and #2EC2C7 stays calm, while #C72E76 is the loudest partner.

What is #2ec77f in CMYK for printing?

cmyk(77%, 0%, 36%, 22%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2ec77f warm or cool?

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

Work with #2ec77f in the Color Lab