Skip to content

#40ff80

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

RGB
64, 255, 128
HSL
140°, 100%, 63%
CMYK
75, 0, 50, 0
Luminance
0.7417

At a glance

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

Hex
#40ff80
Hue
140°
green
Saturation
100%
electric
Lightness
63%
balanced
Brightness
100%
HSV value
Perceived
80%
weighted brightness
Luminance
0.7417
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.83:1
Closest name
Spring Green
ΔE2000 1.2
Where it sits
Hue140° of 360°
Saturation100%
Lightness63%
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#40ff80
RGBrgb(64, 255, 128)
HSLhsl(140, 100%, 63%)
CMYKcmyk(75%, 0%, 50%, 0%)
LABlab(89.0 -72.5 47.3)
LCHlch(89.0 86.5 146.8)
OKLCHoklch(0.881 0.226 149.5)
Decimal4259712
Display P3color(display-p3 0.251 1.000 0.502)

Copy-ready code

/* CSS */
color: #40ff80;
background-color: #40ff80;
/* Tailwind (arbitrary) */
class="text-[#40ff80] bg-[#40ff80]"
/* SCSS */
$brand: #40ff80;
/* SwiftUI */
Color(red: 0.251, green: 1.000, blue: 0.502)
/* Android */
Color.parseColor("#40ff80")
/* Flutter */
Color(0xFF40FF80)
/* Python / OpenCV (BGR) */
(128, 255, 64)

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

Accessibility — WCAG contrast

Aa
#40ff80 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#40ff80 on black: 15.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE975
deuteranopia · #EBD989
tritanopia · #00FAE2

Color scale — 50 to 950

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

#F1FEF5
#E3FCEC
#C0FCD4
#8FFFB4
#40ff80
#1FFF6A
#00F552
#00CC44
#00A337
#05762B
#03491B
Base = 400Lightest = 50 · #F1FEF5Darkest = 950 · #03491B
:root {
  --brand-50: #F1FEF5;
  --brand-100: #E3FCEC;
  --brand-200: #C0FCD4;
  --brand-300: #8FFFB4;
  --brand-400: #40ff80;
  --brand-500: #1FFF6A;
  --brand-600: #00F552;
  --brand-700: #00CC44;
  --brand-800: #00A337;
  --brand-900: #05762B;
  --brand-950: #03491B;
  --brand: #40ff80;
  --brand-ink: #000000;
}

Colors that work with #40ff80

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#4B9B65
Captions on the surface
Accent#CC00BB
Second voice, not a rival
Dark variant#00802B
Hover, pressed, headers
Light variant#E5FFEE
Selected rows, tints
Dark surface#142419
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 #40ff80

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#FF40BF
Analogous left#5FFF40
Analogous right#40FFDF
Split-complement 1#DF40FF
Split-complement 2#FF405F
Triadic 1#8040FF
Triadic 2#FF8040
Tetradic#405FFF

RGB percentages

Red25.1%
Green100.0%
Blue50.2%

CMYK percentages

Cyan74.9%
Magenta0.0%
Yellow49.8%
Key (black)0.0%

Color previews

#40ff80 text on a black background

contrast 15.83:1

Card sample

#40ff80 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40ff80;
Background color
Panel with #40ff80 background
background-color: #40ff80;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 255, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 255, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40ff80;
background: linear-gradient(135deg, #40ff80, #40FFFF);

Monochromatic scale

Palettes built from #40ff80

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.

#40ff80 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.

#40ff80, answered

What color is #40ff80?

#40ff80 is a balanced electric green, closest to Spring Green (ΔE2000 1.2). It sits at 140° on the hue wheel with 100% saturation and 63% lightness, which reads as cool.

What is the RGB value of #40ff80?

rgb(64, 255, 128) — 64 red, 255 green and 128 blue out of 255, or 25.1% / 100% / 50.2% by channel.

Is #40ff80 a light or a dark color?

It is a light color. Relative luminance is 0.7417 and perceived brightness is 80%, so black text on it reaches 15.83:1.

Should I use black or white text on #40ff80?

Black. It scores 15.83:1 against #40ff80, versus 1.33:1 for white — AAA at any size.

What is the complementary color of #40ff80?

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

What colors go well with #40ff80?

For interface work: #F4FAF6 as the surface, #C0EDCF for borders, #4B9B65 for secondary text, #CC00BB as an accent and #00802B for hover and pressed states. For a palette, the analogous pair #5FFF40 and #40FFDF stays calm, while #FF40BF is the loudest partner.

What is #40ff80 in CMYK for printing?

cmyk(75%, 0%, 50%, 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 #40ff80 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 #46FF40; nudged cooler, #40FFC6.

Work with #40ff80 in the Color Lab