Skip to content

#40c65c

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

RGB
64, 198, 92
HSL
133°, 54%, 51%
CMYK
68, 0, 54, 22
Luminance
0.4225

At a glance

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

Hex
#40c65c
Hue
133°
green
Saturation
54%
vivid
Lightness
51%
balanced
Brightness
78%
HSV value
Perceived
62%
weighted brightness
Luminance
0.4225
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
9.45:1
Closest name
Lime Green
ΔE2000 5.4
Where it sits
Hue133° of 360°
Saturation54%
Lightness51%
Temperature
Warm ← → Cool68% 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#40c65c
RGBrgb(64, 198, 92)
HSLhsl(133, 54%, 51%)
CMYKcmyk(68%, 0%, 54%, 22%)
LABlab(71.0 -58.1 42.4)
LCHlch(71.0 71.9 143.9)
OKLCHoklch(0.731 0.187 147.0)
Decimal4245084
Display P3color(display-p3 0.251 0.776 0.361)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c65c on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#40c65c on black: 9.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C8B552
deuteranopia · #B8A964
tritanopia · #06C2AE

Color scale — 50 to 950

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

#F4FBF5
#E9F6EC
#CEEED5
#A9E5B5
#7DD890
#52CB6B
#40c65c
#2F9D46
#267E38
#1F5C2B
#13391B
Base = 600Lightest = 50 · #F4FBF5Darkest = 950 · #13391B
:root {
  --brand-50: #F4FBF5;
  --brand-100: #E9F6EC;
  --brand-200: #CEEED5;
  --brand-300: #A9E5B5;
  --brand-400: #7DD890;
  --brand-500: #52CB6B;
  --brand-600: #40c65c;
  --brand-700: #2F9D46;
  --brand-800: #267E38;
  --brand-900: #1F5C2B;
  --brand-950: #13391B;
  --brand: #40c65c;
  --brand-ink: #000000;
}

Colors that work with #40c65c

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#F4FAF6
Tinted page background
Border#C0ECC9
Hairlines and dividers
Muted text#4B9B5B
Captions on the surface
Accent#C53BCB
Second voice, not a rival
Dark variant#1D622C
Hover, pressed, headers
Light variant#EBF9EE
Selected rows, tints
Dark surface#142417
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 #40c65c

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#C640AA
Analogous left#67C640
Analogous right#40C69F
Split-complement 1#9F40C6
Split-complement 2#C64067
Triadic 1#5C40C6
Triadic 2#C65C40
Tetradic#4067C6

RGB percentages

Red25.1%
Green77.6%
Blue36.1%

CMYK percentages

Cyan67.7%
Magenta0.0%
Yellow53.5%
Key (black)22.4%

Color previews

#40c65c text on a black background

contrast 9.45:1

Card sample

#40c65c text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 198, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 198, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c65c;
background: linear-gradient(135deg, #40c65c, #40C6B5);

Monochromatic scale

Palettes built from #40c65c

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.

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

#40c65c, answered

What color is #40c65c?

#40c65c is a balanced vivid green, closest to Lime Green (ΔE2000 5.4). It sits at 133° on the hue wheel with 54% saturation and 51% lightness, which reads as cool.

What is the RGB value of #40c65c?

rgb(64, 198, 92) — 64 red, 198 green and 92 blue out of 255, or 25.1% / 77.6% / 36.1% by channel.

Is #40c65c a light or a dark color?

It is a mid-tone. Relative luminance is 0.4225 and perceived brightness is 62%, so black text on it reaches 9.45:1.

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

Black. It scores 9.45:1 against #40c65c, versus 2.22:1 for white — AAA at any size.

What is the complementary color of #40c65c?

#C640AA sits directly opposite on the wheel. Softer options are the split-complements #9F40C6 and #C64067, which give the same contrast with far less vibration.

What colors go well with #40c65c?

For interface work: #F4FAF6 as the surface, #C0ECC9 for borders, #4B9B5B for secondary text, #C53BCB as an accent and #1D622C for hover and pressed states. For a palette, the analogous pair #67C640 and #40C69F stays calm, while #C640AA is the loudest partner.

What is #40c65c in CMYK for printing?

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

Is #40c65c warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #55C640; nudged cooler, #3EC88D.

Work with #40c65c in the Color Lab