Skip to content

#0dc40c

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

RGB
13, 196, 12
HSL
120°, 89%, 41%
CMYK
93, 0, 94, 23
Luminance
0.3959

At a glance

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

Hex
#0dc40c
Hue
120°
green
Saturation
89%
electric
Lightness
41%
dark
Brightness
77%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3959
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Electric
Best ink
Black
8.92:1
Closest name
Lime Green
ΔE2000 2.9
Where it sits
Hue120° of 360°
Saturation89%
Lightness41%
Temperature
Warm ← → Cool62% 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#0dc40c
RGBrgb(13, 196, 12)
HSLhsl(120, 89%, 41%)
CMYKcmyk(93%, 0%, 94%, 23%)
LABlab(69.2 -69.9 67.0)
LCHlch(69.2 96.8 136.2)
OKLCHoklch(0.712 0.239 142.5)
Decimal902156
Display P3color(display-p3 0.051 0.769 0.047)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#0dc40c on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#0dc40c on black: 8.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C9B000
deuteranopia · #B7A42E
tritanopia · #00BEA6

Color scale — 50 to 950

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

#F2FDF2
#E5FAE5
#C4F8C4
#96F995
#61F560
#2CF22C
#0FE70E
#0dc40c
#0A9A09
#0C6F0B
#074507
Base = 700Lightest = 50 · #F2FDF2Darkest = 950 · #074507
:root {
  --brand-50: #F2FDF2;
  --brand-100: #E5FAE5;
  --brand-200: #C4F8C4;
  --brand-300: #96F995;
  --brand-400: #61F560;
  --brand-500: #2CF22C;
  --brand-600: #0FE70E;
  --brand-700: #0dc40c;
  --brand-800: #0A9A09;
  --brand-900: #0C6F0B;
  --brand-950: #074507;
  --brand: #0dc40c;
  --brand-ink: #000000;
}

Colors that work with #0dc40c

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#F4FAF4
Tinted page background
Border#C0EDC0
Hairlines and dividers
Muted text#4B9B4B
Captions on the surface
Accent#9708C8
Second voice, not a rival
Dark variant#087807
Hover, pressed, headers
Light variant#E7FEE7
Selected rows, tints
Dark surface#142414
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 #0dc40c

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#C30CC4
Analogous left#69C40C
Analogous right#0CC467
Split-complement 1#670CC4
Split-complement 2#C40C69
Triadic 1#0C0DC4
Triadic 2#C40C0D
Tetradic#0C69C4

RGB percentages

Red5.1%
Green76.9%
Blue4.7%

CMYK percentages

Cyan93.4%
Magenta0.0%
Yellow93.9%
Key (black)23.1%

Color previews

#0dc40c text on a black background

contrast 8.92:1

Card sample

#0dc40c text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0dc40c;
Background color
Panel with #0dc40c background
background-color: #0dc40c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0dc40c;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #0dc40c

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.

#0dc40c 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.

#0dc40c, answered

What color is #0dc40c?

#0dc40c is a dark electric green, closest to Lime Green (ΔE2000 2.9). It sits at 120° on the hue wheel with 89% saturation and 41% lightness, which reads as cool.

What is the RGB value of #0dc40c?

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

Is #0dc40c a light or a dark color?

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

Should I use black or white text on #0dc40c?

Black. It scores 8.92:1 against #0dc40c, versus 2.35:1 for white — AAA at any size.

What is the complementary color of #0dc40c?

#C30CC4 sits directly opposite on the wheel. Softer options are the split-complements #670CC4 and #C40C69, which give the same contrast with far less vibration.

What colors go well with #0dc40c?

For interface work: #F4FAF4 as the surface, #C0EDC0 for borders, #4B9B4B for secondary text, #9708C8 as an accent and #087807 for hover and pressed states. For a palette, the analogous pair #69C40C and #0CC467 stays calm, while #C30CC4 is the loudest partner.

What is #0dc40c in CMYK for printing?

cmyk(93%, 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 #0dc40c warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #50C40C; nudged cooler, #0AC64E.

Work with #0dc40c in the Color Lab