Skip to content

#0ccc2e

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

RGB
12, 204, 46
HSL
131°, 89%, 42%
CMYK
94, 0, 78, 20
Luminance
0.4346

At a glance

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

Hex
#0ccc2e
Hue
131°
green
Saturation
89%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
62%
weighted brightness
Luminance
0.4346
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Electric
Best ink
Black
9.69:1
Closest name
Lime Green
ΔE2000 1.1
Where it sits
Hue131° of 360°
Saturation89%
Lightness42%
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#0ccc2e
RGBrgb(12, 204, 46)
HSLhsl(131, 89%, 42%)
CMYKcmyk(94%, 0%, 78%, 20%)
LABlab(71.9 -70.6 61.9)
LCHlch(71.9 93.9 138.8)
OKLCHoklch(0.735 0.236 144.0)
Decimal838702
Display P3color(display-p3 0.047 0.800 0.180)

Copy-ready code

/* CSS */
color: #0ccc2e;
background-color: #0ccc2e;
/* Tailwind (arbitrary) */
class="text-[#0ccc2e] bg-[#0ccc2e]"
/* SCSS */
$brand: #0ccc2e;
/* SwiftUI */
Color(red: 0.047, green: 0.800, blue: 0.180)
/* Android */
Color.parseColor("#0ccc2e")
/* Flutter */
Color(0xFF0CCC2E)
/* Python / OpenCV (BGR) */
(46, 204, 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 #0ccc2e · 9.69:1
Use #000000AAA at every size.
Aa
White text · 2.17:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.69:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #0ccc2e as text scores 2.17:1 on white and 9.69:1 on black.

Accessibility — WCAG contrast

Aa
#0ccc2e on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#0ccc2e on black: 9.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D0B800
deuteranopia · #BEAB41
tritanopia · #00C6AE

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0ccc2e 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
#E5FBE9
#C4F8CD
#95F9A7
#60F67A
#2BF34E
#0EE734
#0ccc2e
#099A23
#0B6F1D
#074612
Base = 700Lightest = 50 · #F2FDF4Darkest = 950 · #074612
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FBE9;
  --brand-200: #C4F8CD;
  --brand-300: #95F9A7;
  --brand-400: #60F67A;
  --brand-500: #2BF34E;
  --brand-600: #0EE734;
  --brand-700: #0ccc2e;
  --brand-800: #099A23;
  --brand-900: #0B6F1D;
  --brand-950: #074612;
  --brand: #0ccc2e;
  --brand-ink: #000000;
}

Colors that work with #0ccc2e

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#C208D1
Second voice, not a rival
Dark variant#07781B
Hover, pressed, headers
Light variant#E7FEEB
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 #0ccc2e

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#CC0CAA
Analogous left#4ACC0C
Analogous right#0CCC8E
Split-complement 1#8E0CCC
Split-complement 2#CC0C4A
Triadic 1#2E0CCC
Triadic 2#CC2E0C
Tetradic#0C4ACC

RGB percentages

Red4.7%
Green80.0%
Blue18.0%

CMYK percentages

Cyan94.1%
Magenta0.0%
Yellow77.5%
Key (black)20.0%

Color previews

#0ccc2e text on a black background

contrast 9.69:1

Card sample

#0ccc2e text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0ccc2e

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.

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

#0ccc2e, answered

What color is #0ccc2e?

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

What is the RGB value of #0ccc2e?

rgb(12, 204, 46) — 12 red, 204 green and 46 blue out of 255, or 4.7% / 80% / 18% by channel.

Is #0ccc2e a light or a dark color?

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

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

Black. It scores 9.69:1 against #0ccc2e, versus 2.17:1 for white — AAA at any size.

What is the complementary color of #0ccc2e?

#CC0CAA sits directly opposite on the wheel. Softer options are the split-complements #8E0CCC and #CC0C4A, which give the same contrast with far less vibration.

What colors go well with #0ccc2e?

For interface work: #F4FAF5 as the surface, #C0EDC8 for borders, #4B9B59 for secondary text, #C208D1 as an accent and #07781B for hover and pressed states. For a palette, the analogous pair #4ACC0C and #0CCC8E stays calm, while #CC0CAA is the loudest partner.

What is #0ccc2e in CMYK for printing?

cmyk(94%, 0%, 78%, 20%). 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 #0ccc2e 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 #31CC0C; nudged cooler, #0ACE75.

Work with #0ccc2e in the Color Lab