Skip to content

#5ac40c

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

RGB
90, 196, 12
HSL
95°, 89%, 41%
CMYK
54, 0, 94, 23
Luminance
0.4168

At a glance

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

Hex
#5ac40c
Hue
95°
green
Saturation
89%
electric
Lightness
41%
dark
Brightness
77%
HSV value
Perceived
62%
weighted brightness
Luminance
0.4168
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Green
Tone
Electric
Best ink
Black
9.34:1
Closest name
Lime Green
ΔE2000 4.6
Where it sits
Hue95° of 360°
Saturation89%
Lightness41%
Temperature
Warm ← → Cool52% 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#5ac40c
RGBrgb(90, 196, 12)
HSLhsl(95, 89%, 41%)
CMYKcmyk(54%, 0%, 94%, 23%)
LABlab(70.7 -57.4 68.8)
LCHlch(70.7 89.6 129.8)
OKLCHoklch(0.728 0.218 137.1)
Decimal5948428
Display P3color(display-p3 0.353 0.769 0.047)

Copy-ready code

/* CSS */
color: #5ac40c;
background-color: #5ac40c;
/* Tailwind (arbitrary) */
class="text-[#5ac40c] bg-[#5ac40c]"
/* SCSS */
$brand: #5ac40c;
/* SwiftUI */
Color(red: 0.353, green: 0.769, blue: 0.047)
/* Android */
Color.parseColor("#5ac40c")
/* Flutter */
Color(0xFF5AC40C)
/* Python / OpenCV (BGR) */
(12, 196, 90)

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 #5ac40c · 9.34:1
Use #000000AAA at every size.
Aa
White text · 2.25:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.34:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #5ac40c as text scores 2.25:1 on white and 9.34:1 on black.

Accessibility — WCAG contrast

Aa
#5ac40c on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#5ac40c on black: 9.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CBB200
deuteranopia · #BDAA2D
tritanopia · #52BDA6

Color scale — 50 to 950

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

#F7FDF2
#EEFAE5
#DAF8C4
#BFF995
#9FF560
#80F22C
#6AE70E
#5ac40c
#479A09
#366F0B
#214507
Base = 700Lightest = 50 · #F7FDF2Darkest = 950 · #214507
:root {
  --brand-50: #F7FDF2;
  --brand-100: #EEFAE5;
  --brand-200: #DAF8C4;
  --brand-300: #BFF995;
  --brand-400: #9FF560;
  --brand-500: #80F22C;
  --brand-600: #6AE70E;
  --brand-700: #5ac40c;
  --brand-800: #479A09;
  --brand-900: #366F0B;
  --brand-950: #214507;
  --brand: #5ac40c;
  --brand-ink: #000000;
}

Colors that work with #5ac40c

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#F7FAF4
Tinted page background
Border#D3EDC0
Hairlines and dividers
Muted text#6D9B4B
Captions on the surface
Accent#4708C8
Second voice, not a rival
Dark variant#377807
Hover, pressed, headers
Light variant#F1FEE7
Selected rows, tints
Dark surface#1B2414
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 #5ac40c

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#760CC4
Analogous left#B6C40C
Analogous right#0CC41A
Split-complement 1#1A0CC4
Split-complement 2#C40CB6
Triadic 1#0C5AC4
Triadic 2#C40C5A
Tetradic#0CB6C4

RGB percentages

Red35.3%
Green76.9%
Blue4.7%

CMYK percentages

Cyan54.1%
Magenta0.0%
Yellow93.9%
Key (black)23.1%

Color previews

#5ac40c text on a black background

contrast 9.34:1

Card sample

#5ac40c text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5ac40c;
Background color
Panel with #5ac40c background
background-color: #5ac40c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5ac40c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(90, 196, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 196, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5ac40c;
background: linear-gradient(135deg, #5ac40c, #0CC439);

Monochromatic scale

Palettes built from #5ac40c

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.

#5ac40c 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.

#5ac40c, answered

What color is #5ac40c?

#5ac40c is a dark electric green, closest to Lime Green (ΔE2000 4.6). It sits at 95° on the hue wheel with 89% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #5ac40c?

rgb(90, 196, 12) — 90 red, 196 green and 12 blue out of 255, or 35.3% / 76.9% / 4.7% by channel.

Is #5ac40c a light or a dark color?

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

Should I use black or white text on #5ac40c?

Black. It scores 9.34:1 against #5ac40c, versus 2.25:1 for white — AAA at any size.

What is the complementary color of #5ac40c?

#760CC4 sits directly opposite on the wheel. Softer options are the split-complements #1A0CC4 and #C40CB6, which give the same contrast with far less vibration.

What colors go well with #5ac40c?

For interface work: #F7FAF4 as the surface, #D3EDC0 for borders, #6D9B4B for secondary text, #4708C8 as an accent and #377807 for hover and pressed states. For a palette, the analogous pair #B6C40C and #0CC41A stays calm, while #760CC4 is the loudest partner.

What is #5ac40c in CMYK for printing?

cmyk(54%, 0%, 94%, 23%). 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 #5ac40c warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9DC40C; nudged cooler, #15C60A.

Work with #5ac40c in the Color Lab