Skip to content

#2afb73

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

RGB
42, 251, 115
HSL
141°, 96%, 58%
CMYK
83, 0, 54, 2
Luminance
0.7072

At a glance

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

Hex
#2afb73
Hue
141°
green
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
77%
weighted brightness
Luminance
0.7072
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.14:1
Closest name
Spring Green
ΔE2000 1.7
Where it sits
Hue141° of 360°
Saturation96%
Lightness58%
Temperature
Warm ← → Cool71% 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#2afb73
RGBrgb(42, 251, 115)
HSLhsl(141, 96%, 58%)
CMYKcmyk(83%, 0%, 54%, 2%)
LABlab(87.3 -75.4 51.3)
LCHlch(87.3 91.2 145.8)
OKLCHoklch(0.866 0.236 148.7)
Decimal2816883
Display P3color(display-p3 0.165 0.984 0.451)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2afb73 on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#2afb73 on black: 15.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FDE466
deuteranopia · #E7D57E
tritanopia · #00F6DC

Color scale — 50 to 950

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

#F1FDF6
#E4FCEC
#C1FAD5
#91FDB7
#5AFC93
#2afb73
#05F057
#04C849
#03A03A
#07732D
#04481C
Base = 500Lightest = 50 · #F1FDF6Darkest = 950 · #04481C
:root {
  --brand-50: #F1FDF6;
  --brand-100: #E4FCEC;
  --brand-200: #C1FAD5;
  --brand-300: #91FDB7;
  --brand-400: #5AFC93;
  --brand-500: #2afb73;
  --brand-600: #05F057;
  --brand-700: #04C849;
  --brand-800: #03A03A;
  --brand-900: #07732D;
  --brand-950: #04481C;
  --brand: #2afb73;
  --brand-ink: #000000;
}

Colors that work with #2afb73

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#F4FAF6
Tinted page background
Border#C0EDCF
Hairlines and dividers
Muted text#4B9B67
Captions on the surface
Accent#CC00B7
Second voice, not a rival
Dark variant#027D2D
Hover, pressed, headers
Light variant#E6FFEF
Selected rows, tints
Dark surface#14241A
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 #2afb73

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#FB2AB2
Analogous left#4AFB2A
Analogous right#2AFBDC
Split-complement 1#DC2AFB
Split-complement 2#FB2A4A
Triadic 1#732AFB
Triadic 2#FB732A
Tetradic#2A4AFB

RGB percentages

Red16.5%
Green98.4%
Blue45.1%

CMYK percentages

Cyan83.3%
Magenta0.0%
Yellow54.2%
Key (black)1.6%

Color previews

#2afb73 text on a black background

contrast 15.14:1

Card sample

#2afb73 text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2afb73

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.

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

#2afb73, answered

What color is #2afb73?

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

What is the RGB value of #2afb73?

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

Is #2afb73 a light or a dark color?

It is a light color. Relative luminance is 0.7072 and perceived brightness is 77%, so black text on it reaches 15.14:1.

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

Black. It scores 15.14:1 against #2afb73, versus 1.39:1 for white — AAA at any size.

What is the complementary color of #2afb73?

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

What colors go well with #2afb73?

For interface work: #F4FAF6 as the surface, #C0EDCF for borders, #4B9B67 for secondary text, #CC00B7 as an accent and #027D2D for hover and pressed states. For a palette, the analogous pair #4AFB2A and #2AFBDC stays calm, while #FB2AB2 is the loudest partner.

What is #2afb73 in CMYK for printing?

cmyk(83%, 0%, 54%, 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 #2afb73 warm or cool?

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

Work with #2afb73 in the Color Lab