Skip to content

#40c419

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

RGB
64, 196, 25
HSL
106°, 77%, 43%
CMYK
67, 0, 87, 23
Luminance
0.4064

At a glance

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

Hex
#40c419
Hue
106°
green
Saturation
77%
electric
Lightness
43%
dark
Brightness
77%
HSV value
Perceived
61%
weighted brightness
Luminance
0.4064
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Electric
Best ink
Black
9.13:1
Closest name
Lime Green
ΔE2000 2.9
Where it sits
Hue106° of 360°
Saturation77%
Lightness43%
Temperature
Warm ← → Cool57% 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#40c419
RGBrgb(64, 196, 25)
HSLhsl(106, 77%, 43%)
CMYKcmyk(67%, 0%, 87%, 23%)
LABlab(69.9 -63.2 65.8)
LCHlch(69.9 91.2 133.9)
OKLCHoklch(0.720 0.225 140.3)
Decimal4244505
Display P3color(display-p3 0.251 0.769 0.098)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c419 on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#40c419 on black: 9.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C9B100
deuteranopia · #BAA733
tritanopia · #27BDA7

Color scale — 50 to 950

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

#F5FCF3
#EBF9E6
#D2F4C7
#AFF29B
#87EC6A
#60E638
#47D91C
#40c419
#2F9112
#266912
#17410B
Base = 700Lightest = 50 · #F5FCF3Darkest = 950 · #17410B
:root {
  --brand-50: #F5FCF3;
  --brand-100: #EBF9E6;
  --brand-200: #D2F4C7;
  --brand-300: #AFF29B;
  --brand-400: #87EC6A;
  --brand-500: #60E638;
  --brand-600: #47D91C;
  --brand-700: #40c419;
  --brand-800: #2F9112;
  --brand-900: #266912;
  --brand-950: #17410B;
  --brand: #40c419;
  --brand-ink: #000000;
}

Colors that work with #40c419

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#CAEDC0
Hairlines and dividers
Muted text#5D9B4B
Captions on the surface
Accent#7215C8
Second voice, not a rival
Dark variant#25710E
Hover, pressed, headers
Light variant#EDFCE8
Selected rows, tints
Dark surface#172414
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 #40c419

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#9D19C4
Analogous left#95C419
Analogous right#19C447
Split-complement 1#4719C4
Split-complement 2#C41995
Triadic 1#1940C4
Triadic 2#C41940
Tetradic#1995C4

RGB percentages

Red25.1%
Green76.9%
Blue9.8%

CMYK percentages

Cyan67.3%
Magenta0.0%
Yellow87.2%
Key (black)23.1%

Color previews

#40c419 text on a black background

contrast 9.13:1

Card sample

#40c419 text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 196, 25, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 196, 25, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c419;
background: linear-gradient(135deg, #40c419, #19C464);

Monochromatic scale

Palettes built from #40c419

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.

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

#40c419, answered

What color is #40c419?

#40c419 is a dark electric green, closest to Lime Green (ΔE2000 2.9). It sits at 106° on the hue wheel with 77% saturation and 43% lightness, which reads as neutral.

What is the RGB value of #40c419?

rgb(64, 196, 25) — 64 red, 196 green and 25 blue out of 255, or 25.1% / 76.9% / 9.8% by channel.

Is #40c419 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4064 and perceived brightness is 61%, so black text on it reaches 9.13:1.

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

Black. It scores 9.13:1 against #40c419, versus 2.30:1 for white — AAA at any size.

What is the complementary color of #40c419?

#9D19C4 sits directly opposite on the wheel. Softer options are the split-complements #4719C4 and #C41995, which give the same contrast with far less vibration.

What colors go well with #40c419?

For interface work: #F6FAF4 as the surface, #CAEDC0 for borders, #5D9B4B for secondary text, #7215C8 as an accent and #25710E for hover and pressed states. For a palette, the analogous pair #95C419 and #19C447 stays calm, while #9D19C4 is the loudest partner.

What is #40c419 in CMYK for printing?

cmyk(67%, 0%, 87%, 23%). 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 #40c419 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7FC419; nudged cooler, #17C62F.

Work with #40c419 in the Color Lab