Skip to content

#40df2a

a balanced, vivid green · cool · closest name: Lime Green

RGB
64, 223, 42
HSL
113°, 74%, 52%
CMYK
71, 0, 81, 13
Luminance
0.5403

At a glance

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

Hex
#40df2a
Hue
113°
green
Saturation
74%
vivid
Lightness
52%
balanced
Brightness
87%
HSV value
Perceived
69%
weighted brightness
Luminance
0.5403
WCAG relative
Temperature
Cool
59/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
11.81:1
Closest name
Lime Green
ΔE2000 4.7
Where it sits
Hue113° of 360°
Saturation74%
Lightness52%
Temperature
Warm ← → Cool59% 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#40df2a
RGBrgb(64, 223, 42)
HSLhsl(113, 74%, 52%)
CMYKcmyk(71%, 0%, 81%, 13%)
LABlab(78.5 -71.0 69.5)
LCHlch(78.5 99.3 135.6)
OKLCHoklch(0.791 0.247 141.5)
Decimal4251434
Display P3color(display-p3 0.251 0.875 0.165)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40df2a on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#40df2a on black: 11.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5CA00
deuteranopia · #D3BD41
tritanopia · #0CD8BE

Color scale — 50 to 950

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

#F4FCF3
#E9F9E7
#CEF3C8
#A8F09D
#7CE96D
#40df2a
#36D520
#2DB11B
#248E15
#1E6714
#13400C
Base = 500Lightest = 50 · #F4FCF3Darkest = 950 · #13400C
:root {
  --brand-50: #F4FCF3;
  --brand-100: #E9F9E7;
  --brand-200: #CEF3C8;
  --brand-300: #A8F09D;
  --brand-400: #7CE96D;
  --brand-500: #40df2a;
  --brand-600: #36D520;
  --brand-700: #2DB11B;
  --brand-800: #248E15;
  --brand-900: #1E6714;
  --brand-950: #13400C;
  --brand: #40df2a;
  --brand-ink: #000000;
}

Colors that work with #40df2a

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#F5FAF4
Tinted page background
Border#C5EDC0
Hairlines and dividers
Muted text#549B4B
Captions on the surface
Accent#9D25E4
Second voice, not a rival
Dark variant#1C6F11
Hover, pressed, headers
Light variant#EBFCE9
Selected rows, tints
Dark surface#162414
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 #40df2a

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#C92ADF
Analogous left#9BDF2A
Analogous right#2ADF6F
Split-complement 1#6F2ADF
Split-complement 2#DF2A9B
Triadic 1#2A40DF
Triadic 2#DF2A40
Tetradic#2A9BDF

RGB percentages

Red25.1%
Green87.5%
Blue16.5%

CMYK percentages

Cyan71.3%
Magenta0.0%
Yellow81.2%
Key (black)12.5%

Color previews

#40df2a text on a black background

contrast 11.81:1

Card sample

#40df2a text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 223, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 223, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40df2a;
background: linear-gradient(135deg, #40df2a, #2ADF8D);

Monochromatic scale

Palettes built from #40df2a

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.

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

#40df2a, answered

What color is #40df2a?

#40df2a is a balanced vivid green, closest to Lime Green (ΔE2000 4.7). It sits at 113° on the hue wheel with 74% saturation and 52% lightness, which reads as cool.

What is the RGB value of #40df2a?

rgb(64, 223, 42) — 64 red, 223 green and 42 blue out of 255, or 25.1% / 87.5% / 16.5% by channel.

Is #40df2a a light or a dark color?

It is a light color. Relative luminance is 0.5403 and perceived brightness is 69%, so black text on it reaches 11.81:1.

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

Black. It scores 11.81:1 against #40df2a, versus 1.78:1 for white — AAA at any size.

What is the complementary color of #40df2a?

#C92ADF sits directly opposite on the wheel. Softer options are the split-complements #6F2ADF and #DF2A9B, which give the same contrast with far less vibration.

What colors go well with #40df2a?

For interface work: #F5FAF4 as the surface, #C5EDC0 for borders, #549B4B for secondary text, #9D25E4 as an accent and #1C6F11 for hover and pressed states. For a palette, the analogous pair #9BDF2A and #2ADF6F stays calm, while #C92ADF is the loudest partner.

What is #40df2a in CMYK for printing?

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

Is #40df2a warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #82DF2A; nudged cooler, #28E255.

Work with #40df2a in the Color Lab