Skip to content

#40f702

a balanced, electric green · neutral · closest name: Lime

RGB
64, 247, 2
HSL
105°, 98%, 49%
CMYK
74, 0, 99, 3
Luminance
0.6762

At a glance

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

Hex
#40f702
Hue
105°
green
Saturation
98%
electric
Lightness
49%
balanced
Brightness
97%
HSV value
Perceived
75%
weighted brightness
Luminance
0.6762
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.52:1
Closest name
Lime
ΔE2000 2
Where it sits
Hue105° of 360°
Saturation98%
Lightness49%
Temperature
Warm ← → Cool56% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#40f702
RGBrgb(64, 247, 2)
HSLhsl(105, 98%, 49%)
CMYKcmyk(74%, 0%, 99%, 3%)
LABlab(85.8 -79.2 81.7)
LCHlch(85.8 113.8 134.1)
OKLCHoklch(0.852 0.279 140.9)
Decimal4257538
Display P3color(display-p3 0.251 0.969 0.008)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40f702 on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#40f702 on black: 14.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FEDF00
deuteranopia · #EAD138
tritanopia · #00EFD2

Color scale — 50 to 950

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

#F4FEF1
#EAFCE3
#CFFBC1
#ACFE90
#82FE58
#58FD20
#40f702
#34CA02
#2AA201
#227506
#154904
Base = 600Lightest = 50 · #F4FEF1Darkest = 950 · #154904
:root {
  --brand-50: #F4FEF1;
  --brand-100: #EAFCE3;
  --brand-200: #CFFBC1;
  --brand-300: #ACFE90;
  --brand-400: #82FE58;
  --brand-500: #58FD20;
  --brand-600: #40f702;
  --brand-700: #34CA02;
  --brand-800: #2AA201;
  --brand-900: #227506;
  --brand-950: #154904;
  --brand: #40f702;
  --brand-ink: #000000;
}

Colors that work with #40f702

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#F6FAF4
Tinted page background
Border#CBEDC0
Hairlines and dividers
Muted text#5F9B4B
Captions on the surface
Accent#7C00F9
Second voice, not a rival
Dark variant#217E01
Hover, pressed, headers
Light variant#ECFFE6
Selected rows, tints
Dark surface#182414
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 #40f702

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#B902F7
Analogous left#BAF702
Analogous right#02F73E
Split-complement 1#3E02F7
Split-complement 2#F702BA
Triadic 1#0240F7
Triadic 2#F70240
Tetradic#02BAF7

RGB percentages

Red25.1%
Green96.9%
Blue0.8%

CMYK percentages

Cyan74.1%
Magenta0.0%
Yellow99.2%
Key (black)3.1%

Color previews

#40f702 text on a black background

contrast 14.52:1

Card sample

#40f702 text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40f702

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.

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

#40f702, answered

What color is #40f702?

#40f702 is a balanced electric green, closest to Lime (ΔE2000 2). It sits at 105° on the hue wheel with 98% saturation and 49% lightness, which reads as neutral.

What is the RGB value of #40f702?

rgb(64, 247, 2) — 64 red, 247 green and 2 blue out of 255, or 25.1% / 96.9% / 0.8% by channel.

Is #40f702 a light or a dark color?

It is a light color. Relative luminance is 0.6762 and perceived brightness is 75%, so black text on it reaches 14.52:1.

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

Black. It scores 14.52:1 against #40f702, versus 1.45:1 for white — AAA at any size.

What is the complementary color of #40f702?

#B902F7 sits directly opposite on the wheel. Softer options are the split-complements #3E02F7 and #F702BA, which give the same contrast with far less vibration.

What colors go well with #40f702?

For interface work: #F6FAF4 as the surface, #CBEDC0 for borders, #5F9B4B for secondary text, #7C00F9 as an accent and #217E01 for hover and pressed states. For a palette, the analogous pair #BAF702 and #02F73E stays calm, while #B902F7 is the loudest partner.

What is #40f702 in CMYK for printing?

cmyk(74%, 0%, 99%, 3%). 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 #40f702 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9AF702; nudged cooler, #00F91C.

Work with #40f702 in the Color Lab