Skip to content

#40c97f

a balanced, vivid green · cool · closest name: Medium Sea Green

RGB
64, 201, 127
HSL
148°, 56%, 52%
CMYK
68, 0, 37, 21
Luminance
0.4440

At a glance

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

Hex
#40c97f
Hue
148°
green
Saturation
56%
vivid
Lightness
52%
balanced
Brightness
79%
HSV value
Perceived
64%
weighted brightness
Luminance
0.4440
WCAG relative
Temperature
Cool
74/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
9.88:1
Closest name
Medium Sea Green
ΔE2000 5.9
Where it sits
Hue148° of 360°
Saturation56%
Lightness52%
Temperature
Warm ← → Cool74% 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#40c97f
RGBrgb(64, 201, 127)
HSLhsl(148, 56%, 52%)
CMYKcmyk(68%, 0%, 37%, 21%)
LABlab(72.5 -53.4 26.6)
LCHlch(72.5 59.7 153.6)
OKLCHoklch(0.745 0.159 155.3)
Decimal4245887
Display P3color(display-p3 0.251 0.788 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c97f on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#40c97f on black: 9.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C8B97A
deuteranopia · #B7AD84
tritanopia · #00C7B6

Color scale — 50 to 950

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

#F4FBF7
#E9F6EF
#CEEEDD
#A8E6C4
#7CDAA7
#40c97f
#36BF75
#2D9F61
#247F4E
#1E5D3B
#133A25
Base = 500Lightest = 50 · #F4FBF7Darkest = 950 · #133A25
:root {
  --brand-50: #F4FBF7;
  --brand-100: #E9F6EF;
  --brand-200: #CEEEDD;
  --brand-300: #A8E6C4;
  --brand-400: #7CDAA7;
  --brand-500: #40c97f;
  --brand-600: #36BF75;
  --brand-700: #2D9F61;
  --brand-800: #247F4E;
  --brand-900: #1E5D3B;
  --brand-950: #133A25;
  --brand: #40c97f;
  --brand-ink: #000000;
}

Colors that work with #40c97f

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#F4FAF7
Tinted page background
Border#C0EDD4
Hairlines and dividers
Muted text#4B9B70
Captions on the surface
Accent#CE3BAF
Second voice, not a rival
Dark variant#1C633D
Hover, pressed, headers
Light variant#EBF9F2
Selected rows, tints
Dark surface#14241B
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 #40c97f

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#C9408A
Analogous left#46C940
Analogous right#40C9C4
Split-complement 1#C440C9
Split-complement 2#C94046
Triadic 1#7F40C9
Triadic 2#C97F40
Tetradic#4046C9

RGB percentages

Red25.1%
Green78.8%
Blue49.8%

CMYK percentages

Cyan68.2%
Magenta0.0%
Yellow36.8%
Key (black)21.2%

Color previews

#40c97f text on a black background

contrast 9.88:1

Card sample

#40c97f text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40c97f

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.

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

#40c97f, answered

What color is #40c97f?

#40c97f is a balanced vivid green, closest to Medium Sea Green (ΔE2000 5.9). It sits at 148° on the hue wheel with 56% saturation and 52% lightness, which reads as cool.

What is the RGB value of #40c97f?

rgb(64, 201, 127) — 64 red, 201 green and 127 blue out of 255, or 25.1% / 78.8% / 49.8% by channel.

Is #40c97f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4440 and perceived brightness is 64%, so black text on it reaches 9.88:1.

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

Black. It scores 9.88:1 against #40c97f, versus 2.13:1 for white — AAA at any size.

What is the complementary color of #40c97f?

#C9408A sits directly opposite on the wheel. Softer options are the split-complements #C440C9 and #C94046, which give the same contrast with far less vibration.

What colors go well with #40c97f?

For interface work: #F4FAF7 as the surface, #C0EDD4 for borders, #4B9B70 for secondary text, #CE3BAF as an accent and #1C633D for hover and pressed states. For a palette, the analogous pair #46C940 and #40C9C4 stays calm, while #C9408A is the loudest partner.

What is #40c97f in CMYK for printing?

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

Is #40c97f warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #40C94D; nudged cooler, #3ECBB3.

Work with #40c97f in the Color Lab