Skip to content

#0cb02a

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

RGB
12, 176, 42
HSL
131°, 87%, 37%
CMYK
93, 0, 76, 31
Luminance
0.3130

At a glance

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

Hex
#0cb02a
Hue
131°
green
Saturation
87%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
53%
weighted brightness
Luminance
0.3130
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Electric
Best ink
Black
7.26:1
Closest name
Lime Green
ΔE2000 8.1
Where it sits
Hue131° of 360°
Saturation87%
Lightness37%
Temperature
Warm ← → Cool67% 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#0cb02a
RGBrgb(12, 176, 42)
HSLhsl(131, 87%, 37%)
CMYKcmyk(93%, 0%, 76%, 31%)
LABlab(62.8 -62.9 54.2)
LCHlch(62.8 83.0 139.2)
OKLCHoklch(0.658 0.209 144.2)
Decimal831530
Display P3color(display-p3 0.047 0.690 0.165)

Copy-ready code

/* CSS */
color: #0cb02a;
background-color: #0cb02a;
/* Tailwind (arbitrary) */
class="text-[#0cb02a] bg-[#0cb02a]"
/* SCSS */
$brand: #0cb02a;
/* SwiftUI */
Color(red: 0.047, green: 0.690, blue: 0.165)
/* Android */
Color.parseColor("#0cb02a")
/* Flutter */
Color(0xFF0CB02A)
/* Python / OpenCV (BGR) */
(42, 176, 12)

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

Accessibility — WCAG contrast

Aa
#0cb02a on white: 2.89:1
AA ✗ fail · AA-large · AAA
Aa
#0cb02a on black: 7.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B39E0B
deuteranopia · #A49439
tritanopia · #00AB96

Color scale — 50 to 950

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

#F2FDF4
#E5FAE9
#C4F7CE
#96F8A8
#61F47C
#2DF151
#10E537
#0cb02a
#0A9925
#0C6E1E
#084513
Base = 700Lightest = 50 · #F2FDF4Darkest = 950 · #084513
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FAE9;
  --brand-200: #C4F7CE;
  --brand-300: #96F8A8;
  --brand-400: #61F47C;
  --brand-500: #2DF151;
  --brand-600: #10E537;
  --brand-700: #0cb02a;
  --brand-800: #0A9925;
  --brand-900: #0C6E1E;
  --brand-950: #084513;
  --brand: #0cb02a;
  --brand-ink: #000000;
}

Colors that work with #0cb02a

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#F4FAF5
Tinted page background
Border#C0EDC8
Hairlines and dividers
Muted text#4B9B59
Captions on the surface
Accent#A808B4
Second voice, not a rival
Dark variant#08771D
Hover, pressed, headers
Light variant#E7FDEB
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 #0cb02a

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#B00C92
Analogous left#40B00C
Analogous right#0CB07C
Split-complement 1#7C0CB0
Split-complement 2#B00C40
Triadic 1#2A0CB0
Triadic 2#B02A0C
Tetradic#0C40B0

RGB percentages

Red4.7%
Green69.0%
Blue16.5%

CMYK percentages

Cyan93.2%
Magenta0.0%
Yellow76.1%
Key (black)31.0%

Color previews

#0cb02a text on a black background

contrast 7.26:1

Card sample

#0cb02a text on a white background

contrast 2.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cb02a

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.

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

#0cb02a, answered

What color is #0cb02a?

#0cb02a is a dark electric green, closest to Lime Green (ΔE2000 8.1). It sits at 131° on the hue wheel with 87% saturation and 37% lightness, which reads as cool.

What is the RGB value of #0cb02a?

rgb(12, 176, 42) — 12 red, 176 green and 42 blue out of 255, or 4.7% / 69% / 16.5% by channel.

Is #0cb02a a light or a dark color?

It is a mid-tone. Relative luminance is 0.3130 and perceived brightness is 53%, so black text on it reaches 7.26:1.

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

Black. It scores 7.26:1 against #0cb02a, versus 2.89:1 for white — AAA at any size.

What is the complementary color of #0cb02a?

#B00C92 sits directly opposite on the wheel. Softer options are the split-complements #7C0CB0 and #B00C40, which give the same contrast with far less vibration.

What colors go well with #0cb02a?

For interface work: #F4FAF5 as the surface, #C0EDC8 for borders, #4B9B59 for secondary text, #A808B4 as an accent and #08771D for hover and pressed states. For a palette, the analogous pair #40B00C and #0CB07C stays calm, while #B00C92 is the loudest partner.

What is #0cb02a in CMYK for printing?

cmyk(93%, 0%, 76%, 31%). 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 #0cb02a warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2AB00C; nudged cooler, #0AB266.

Work with #0cb02a in the Color Lab