Skip to content

#40f968

a balanced, electric green · cool · closest name: Spring Green

RGB
64, 249, 104
HSL
133°, 94%, 61%
CMYK
74, 0, 58, 2
Luminance
0.6984

At a glance

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

Hex
#40f968
Hue
133°
green
Saturation
94%
electric
Lightness
61%
balanced
Brightness
98%
HSV value
Perceived
77%
weighted brightness
Luminance
0.6984
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.97:1
Closest name
Spring Green
ΔE2000 3.3
Where it sits
Hue133° of 360°
Saturation94%
Lightness61%
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#40f968
RGBrgb(64, 249, 104)
HSLhsl(133, 94%, 61%)
CMYKcmyk(74%, 0%, 58%, 2%)
LABlab(86.9 -73.7 55.7)
LCHlch(86.9 92.4 142.9)
OKLCHoklch(0.863 0.238 146.4)
Decimal4258152
Display P3color(display-p3 0.251 0.976 0.408)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40f968 on white: 1.40:1
AA ✗ fail · AA-large · AAA
Aa
#40f968 on black: 14.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCE359
deuteranopia · #E7D474
tritanopia · #00F3D9

Color scale — 50 to 950

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

#F2FDF4
#E4FBE9
#C2FACE
#92FCA9
#5CFA7E
#40f968
#07ED39
#06C630
#059E26
#08721F
#054714
Base = 500Lightest = 50 · #F2FDF4Darkest = 950 · #054714
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E4FBE9;
  --brand-200: #C2FACE;
  --brand-300: #92FCA9;
  --brand-400: #5CFA7E;
  --brand-500: #40f968;
  --brand-600: #07ED39;
  --brand-700: #06C630;
  --brand-800: #059E26;
  --brand-900: #08721F;
  --brand-950: #054714;
  --brand: #40f968;
  --brand-ink: #000000;
}

Colors that work with #40f968

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#C0EDC9
Hairlines and dividers
Muted text#4B9B5C
Captions on the surface
Accent#C402CA
Second voice, not a rival
Dark variant#047C1E
Hover, pressed, headers
Light variant#E6FEEB
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 #40f968

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#F940D1
Analogous left#75F940
Analogous right#40F9C5
Split-complement 1#C540F9
Split-complement 2#F94075
Triadic 1#6840F9
Triadic 2#F96840
Tetradic#4075F9

RGB percentages

Red25.1%
Green97.6%
Blue40.8%

CMYK percentages

Cyan74.3%
Magenta0.0%
Yellow58.2%
Key (black)2.4%

Color previews

#40f968 text on a black background

contrast 14.97:1

Card sample

#40f968 text on a white background

contrast 1.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40f968

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.

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

#40f968, answered

What color is #40f968?

#40f968 is a balanced electric green, closest to Spring Green (ΔE2000 3.3). It sits at 133° on the hue wheel with 94% saturation and 61% lightness, which reads as cool.

What is the RGB value of #40f968?

rgb(64, 249, 104) — 64 red, 249 green and 104 blue out of 255, or 25.1% / 97.6% / 40.8% by channel.

Is #40f968 a light or a dark color?

It is a light color. Relative luminance is 0.6984 and perceived brightness is 77%, so black text on it reaches 14.97:1.

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

Black. It scores 14.97:1 against #40f968, versus 1.40:1 for white — AAA at any size.

What is the complementary color of #40f968?

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

What colors go well with #40f968?

For interface work: #F4FAF6 as the surface, #C0EDC9 for borders, #4B9B5C for secondary text, #C402CA as an accent and #047C1E for hover and pressed states. For a palette, the analogous pair #75F940 and #40F9C5 stays calm, while #F940D1 is the loudest partner.

What is #40f968 in CMYK for printing?

cmyk(74%, 0%, 58%, 2%). 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 #40f968 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 #5CF940; nudged cooler, #3EFBAC.

Work with #40f968 in the Color Lab