Skip to content

#40be21

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

RGB
64, 190, 33
HSL
108°, 70%, 44%
CMYK
66, 0, 83, 26
Luminance
0.3803

At a glance

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

Hex
#40be21
Hue
108°
green
Saturation
70%
vivid
Lightness
44%
dark
Brightness
75%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3803
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
8.61:1
Closest name
Lime Green
ΔE2000 4
Where it sits
Hue108° of 360°
Saturation70%
Lightness44%
Temperature
Warm ← → Cool58% 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#40be21
RGBrgb(64, 190, 33)
HSLhsl(108, 70%, 44%)
CMYKcmyk(66%, 0%, 83%, 26%)
LABlab(68.0 -60.9 62.3)
LCHlch(68.0 87.1 134.4)
OKLCHoklch(0.705 0.216 140.5)
Decimal4242977
Display P3color(display-p3 0.251 0.745 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40be21 on white: 2.44:1
AA ✗ fail · AA-large · AAA
Aa
#40be21 on black: 8.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C3AC00
deuteranopia · #B4A235
tritanopia · #29B8A2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #40be21 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
#EBF8E7
#D1F2C9
#AFEE9F
#87E670
#5FDE40
#46D124
#40be21
#2F8B18
#256516
#173F0D
Base = 700Lightest = 50 · #F5FCF3Darkest = 950 · #173F0D
:root {
  --brand-50: #F5FCF3;
  --brand-100: #EBF8E7;
  --brand-200: #D1F2C9;
  --brand-300: #AFEE9F;
  --brand-400: #87E670;
  --brand-500: #5FDE40;
  --brand-600: #46D124;
  --brand-700: #40be21;
  --brand-800: #2F8B18;
  --brand-900: #256516;
  --brand-950: #173F0D;
  --brand: #40be21;
  --brand-ink: #000000;
}

Colors that work with #40be21

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#C9EDC0
Hairlines and dividers
Muted text#5A9B4B
Captions on the surface
Accent#781DC2
Second voice, not a rival
Dark variant#256D13
Hover, pressed, headers
Light variant#EDFBE9
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 #40be21

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#9F21BE
Analogous left#8EBE21
Analogous right#21BE51
Split-complement 1#5121BE
Split-complement 2#BE218E
Triadic 1#2140BE
Triadic 2#BE2140
Tetradic#218EBE

RGB percentages

Red25.1%
Green74.5%
Blue12.9%

CMYK percentages

Cyan66.3%
Magenta0.0%
Yellow82.6%
Key (black)25.5%

Color previews

#40be21 text on a black background

contrast 8.61:1

Card sample

#40be21 text on a white background

contrast 2.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40be21

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.

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

#40be21, answered

What color is #40be21?

#40be21 is a dark vivid green, closest to Lime Green (ΔE2000 4). It sits at 108° on the hue wheel with 70% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #40be21?

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

Is #40be21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3803 and perceived brightness is 59%, so black text on it reaches 8.61:1.

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

Black. It scores 8.61:1 against #40be21, versus 2.44:1 for white — AAA at any size.

What is the complementary color of #40be21?

#9F21BE sits directly opposite on the wheel. Softer options are the split-complements #5121BE and #BE218E, which give the same contrast with far less vibration.

What colors go well with #40be21?

For interface work: #F5FAF4 as the surface, #C9EDC0 for borders, #5A9B4B for secondary text, #781DC2 as an accent and #256D13 for hover and pressed states. For a palette, the analogous pair #8EBE21 and #21BE51 stays calm, while #9F21BE is the loudest partner.

What is #40be21 in CMYK for printing?

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

Is #40be21 warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #79BE21; nudged cooler, #1FC03A.

Work with #40be21 in the Color Lab