Skip to content

#40da21

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

RGB
64, 218, 33
HSL
110°, 74%, 49%
CMYK
71, 0, 85, 15
Luminance
0.5134

At a glance

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

Hex
#40da21
Hue
110°
green
Saturation
74%
vivid
Lightness
49%
balanced
Brightness
85%
HSV value
Perceived
67%
weighted brightness
Luminance
0.5134
WCAG relative
Temperature
Cool
58/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
11.27:1
Closest name
Lime Green
ΔE2000 3.8
Where it sits
Hue110° of 360°
Saturation74%
Lightness49%
Temperature
Warm ← → Cool58% 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#40da21
RGBrgb(64, 218, 33)
HSLhsl(110, 74%, 49%)
CMYKcmyk(71%, 0%, 85%, 15%)
LABlab(76.9 -69.8 70.2)
LCHlch(76.9 99.0 134.8)
OKLCHoklch(0.778 0.245 141.1)
Decimal4250145
Display P3color(display-p3 0.251 0.855 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40da21 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#40da21 on black: 11.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E0C500
deuteranopia · #CEB93B
tritanopia · #16D3BA

Color scale — 50 to 950

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

#F4FCF3
#EAF8E7
#D0F3C8
#ABF09E
#82E96D
#58E13C
#40da21
#34B11B
#2A8E15
#226714
#15400C
Base = 600Lightest = 50 · #F4FCF3Darkest = 950 · #15400C
:root {
  --brand-50: #F4FCF3;
  --brand-100: #EAF8E7;
  --brand-200: #D0F3C8;
  --brand-300: #ABF09E;
  --brand-400: #82E96D;
  --brand-500: #58E13C;
  --brand-600: #40da21;
  --brand-700: #34B11B;
  --brand-800: #2A8E15;
  --brand-900: #226714;
  --brand-950: #15400C;
  --brand: #40da21;
  --brand-ink: #000000;
}

Colors that work with #40da21

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#C7EDC0
Hairlines and dividers
Muted text#589B4B
Captions on the surface
Accent#8D1CDF
Second voice, not a rival
Dark variant#216F11
Hover, pressed, headers
Light variant#ECFCE9
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 #40da21

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#BB21DA
Analogous left#9DDA21
Analogous right#21DA5E
Split-complement 1#5E21DA
Split-complement 2#DA219D
Triadic 1#2140DA
Triadic 2#DA2140
Tetradic#219DDA

RGB percentages

Red25.1%
Green85.5%
Blue12.9%

CMYK percentages

Cyan70.6%
Magenta0.0%
Yellow84.9%
Key (black)14.5%

Color previews

#40da21 text on a black background

contrast 11.27:1

Card sample

#40da21 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 218, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 218, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40da21;
background: linear-gradient(135deg, #40da21, #21DA7D);

Monochromatic scale

Palettes built from #40da21

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.

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

#40da21, answered

What color is #40da21?

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

What is the RGB value of #40da21?

rgb(64, 218, 33) — 64 red, 218 green and 33 blue out of 255, or 25.1% / 85.5% / 12.9% by channel.

Is #40da21 a light or a dark color?

It is a light color. Relative luminance is 0.5134 and perceived brightness is 67%, so black text on it reaches 11.27:1.

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

Black. It scores 11.27:1 against #40da21, versus 1.86:1 for white — AAA at any size.

What is the complementary color of #40da21?

#BB21DA sits directly opposite on the wheel. Softer options are the split-complements #5E21DA and #DA219D, which give the same contrast with far less vibration.

What colors go well with #40da21?

For interface work: #F5FAF4 as the surface, #C7EDC0 for borders, #589B4B for secondary text, #8D1CDF as an accent and #216F11 for hover and pressed states. For a palette, the analogous pair #9DDA21 and #21DA5E stays calm, while #BB21DA is the loudest partner.

What is #40da21 in CMYK for printing?

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

Is #40da21 warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #84DA21; nudged cooler, #1EDC44.

Work with #40da21 in the Color Lab