Skip to content

#2afba5

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

RGB
42, 251, 165
HSL
155°, 96%, 58%
CMYK
83, 0, 34, 2
Luminance
0.7220

At a glance

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

Hex
#2afba5
Hue
155°
green
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
79%
weighted brightness
Luminance
0.7220
WCAG relative
Temperature
Cool
77/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.44:1
Closest name
Medium Spring Green
ΔE2000 1.7
Where it sits
Hue155° of 360°
Saturation96%
Lightness58%
Temperature
Warm ← → Cool77% 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#2afba5
RGBrgb(42, 251, 165)
HSLhsl(155, 96%, 58%)
CMYKcmyk(83%, 0%, 34%, 2%)
LABlab(88.1 -67.0 27.9)
LCHlch(88.1 72.6 157.4)
OKLCHoklch(0.874 0.194 158.8)
Decimal2816933
Display P3color(display-p3 0.165 0.984 0.647)

Copy-ready code

/* CSS */
color: #2afba5;
background-color: #2afba5;
/* Tailwind (arbitrary) */
class="text-[#2afba5] bg-[#2afba5]"
/* SCSS */
$brand: #2afba5;
/* SwiftUI */
Color(red: 0.165, green: 0.984, blue: 0.647)
/* Android */
Color.parseColor("#2afba5")
/* Flutter */
Color(0xFF2AFBA5)
/* Python / OpenCV (BGR) */
(165, 251, 42)

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

Accessibility — WCAG contrast

Aa
#2afba5 on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#2afba5 on black: 15.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F8E7A0
deuteranopia · #E1D6AB
tritanopia · #00FAE5

Color scale — 50 to 950

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

#F1FDF8
#E4FCF2
#C1FAE3
#91FDD0
#5AFCB9
#2afba5
#05F08F
#04C877
#03A05F
#077347
#04482C
Base = 500Lightest = 50 · #F1FDF8Darkest = 950 · #04482C
:root {
  --brand-50: #F1FDF8;
  --brand-100: #E4FCF2;
  --brand-200: #C1FAE3;
  --brand-300: #91FDD0;
  --brand-400: #5AFCB9;
  --brand-500: #2afba5;
  --brand-600: #05F08F;
  --brand-700: #04C877;
  --brand-800: #03A05F;
  --brand-900: #077347;
  --brand-950: #04482C;
  --brand: #2afba5;
  --brand-ink: #000000;
}

Colors that work with #2afba5

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#C0EDDA
Hairlines and dividers
Muted text#4B9B7A
Captions on the surface
Accent#FF26B6
Second voice, not a rival
Dark variant#027D4B
Hover, pressed, headers
Light variant#E6FFF4
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 #2afba5

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#FB2A80
Analogous left#2AFB3D
Analogous right#2AE9FB
Split-complement 1#FB2AE9
Split-complement 2#FB3D2A
Triadic 1#A52AFB
Triadic 2#FBA52A
Tetradic#3D2AFB

RGB percentages

Red16.5%
Green98.4%
Blue64.7%

CMYK percentages

Cyan83.3%
Magenta0.0%
Yellow34.3%
Key (black)1.6%

Color previews

#2afba5 text on a black background

contrast 15.44:1

Card sample

#2afba5 text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 251, 165, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 251, 165, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2afba5;
background: linear-gradient(135deg, #2afba5, #2AC6FB);

Monochromatic scale

Palettes built from #2afba5

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.

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

#2afba5, answered

What color is #2afba5?

#2afba5 is a balanced electric green, closest to Medium Spring Green (ΔE2000 1.7). It sits at 155° on the hue wheel with 96% saturation and 58% lightness, which reads as cool.

What is the RGB value of #2afba5?

rgb(42, 251, 165) — 42 red, 251 green and 165 blue out of 255, or 16.5% / 98.4% / 64.7% by channel.

Is #2afba5 a light or a dark color?

It is a light color. Relative luminance is 0.7220 and perceived brightness is 79%, so black text on it reaches 15.44:1.

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

Black. It scores 15.44:1 against #2afba5, versus 1.36:1 for white — AAA at any size.

What is the complementary color of #2afba5?

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

What colors go well with #2afba5?

For interface work: #F4FAF8 as the surface, #C0EDDA for borders, #4B9B7A for secondary text, #FF26B6 as an accent and #027D4B for hover and pressed states. For a palette, the analogous pair #2AFB3D and #2AE9FB stays calm, while #FB2A80 is the loudest partner.

What is #2afba5 in CMYK for printing?

cmyk(83%, 0%, 34%, 2%). 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 #2afba5 warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2AFB59; nudged cooler, #28FDF4.

Work with #2afba5 in the Color Lab