Skip to content

#40d301

a dark, electric green · neutral · closest name: Lime Green

RGB
64, 211, 1
HSL
102°, 99%, 42%
CMYK
70, 0, 100, 17
Luminance
0.4768

At a glance

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

Hex
#40d301
Hue
102°
green
Saturation
99%
electric
Lightness
42%
dark
Brightness
83%
HSV value
Perceived
65%
weighted brightness
Luminance
0.4768
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Green
Tone
Electric
Best ink
Black
10.54:1
Closest name
Lime Green
ΔE2000 3.3
Where it sits
Hue102° of 360°
Saturation99%
Lightness42%
Temperature
Warm ← → Cool55% 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#40d301
RGBrgb(64, 211, 1)
HSLhsl(102, 99%, 42%)
CMYKcmyk(70%, 0%, 100%, 17%)
LABlab(74.6 -68.5 72.8)
LCHlch(74.6 100.0 133.2)
OKLCHoklch(0.759 0.245 140.2)
Decimal4248321
Display P3color(display-p3 0.251 0.827 0.004)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40d301 on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#40d301 on black: 10.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9BF00
deuteranopia · #C8B32E
tritanopia · #20CCB3

Color scale — 50 to 950

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

#F5FEF1
#EBFCE3
#D2FBC0
#B1FE8F
#89FE57
#62FE20
#4AF401
#40d301
#31A201
#277505
#184903
Base = 700Lightest = 50 · #F5FEF1Darkest = 950 · #184903
:root {
  --brand-50: #F5FEF1;
  --brand-100: #EBFCE3;
  --brand-200: #D2FBC0;
  --brand-300: #B1FE8F;
  --brand-400: #89FE57;
  --brand-500: #62FE20;
  --brand-600: #4AF401;
  --brand-700: #40d301;
  --brand-800: #31A201;
  --brand-900: #277505;
  --brand-950: #184903;
  --brand: #40d301;
  --brand-ink: #000000;
}

Colors that work with #40d301

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#CDEDC0
Hairlines and dividers
Muted text#639B4B
Captions on the surface
Accent#5F00D4
Second voice, not a rival
Dark variant#267F01
Hover, pressed, headers
Light variant#EDFFE6
Selected rows, tints
Dark surface#192414
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 #40d301

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#9401D3
Analogous left#A9D301
Analogous right#01D32B
Split-complement 1#2B01D3
Split-complement 2#D301A9
Triadic 1#0140D3
Triadic 2#D30140
Tetradic#01A9D3

RGB percentages

Red25.1%
Green82.7%
Blue0.4%

CMYK percentages

Cyan69.7%
Magenta0.0%
Yellow99.5%
Key (black)17.3%

Color previews

#40d301 text on a black background

contrast 10.54:1

Card sample

#40d301 text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 211, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 211, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40d301;
background: linear-gradient(135deg, #40d301, #01D34E);

Monochromatic scale

Palettes built from #40d301

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.

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

#40d301, answered

What color is #40d301?

#40d301 is a dark electric green, closest to Lime Green (ΔE2000 3.3). It sits at 102° on the hue wheel with 99% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #40d301?

rgb(64, 211, 1) — 64 red, 211 green and 1 blue out of 255, or 25.1% / 82.7% / 0.4% by channel.

Is #40d301 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4768 and perceived brightness is 65%, so black text on it reaches 10.54:1.

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

Black. It scores 10.54:1 against #40d301, versus 1.99:1 for white — AAA at any size.

What is the complementary color of #40d301?

#9401D3 sits directly opposite on the wheel. Softer options are the split-complements #2B01D3 and #D301A9, which give the same contrast with far less vibration.

What colors go well with #40d301?

For interface work: #F6FAF4 as the surface, #CDEDC0 for borders, #639B4B for secondary text, #5F00D4 as an accent and #267F01 for hover and pressed states. For a palette, the analogous pair #A9D301 and #01D32B stays calm, while #9401D3 is the loudest partner.

What is #40d301 in CMYK for printing?

cmyk(70%, 0%, 100%, 17%). 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 #40d301 warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8DD301; nudged cooler, #00D40E.

Work with #40d301 in the Color Lab