Skip to content

#0cd031

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

RGB
12, 208, 49
HSL
131°, 89%, 43%
CMYK
94, 0, 76, 18
Luminance
0.4541

At a glance

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

Hex
#0cd031
Hue
131°
green
Saturation
89%
electric
Lightness
43%
dark
Brightness
82%
HSV value
Perceived
63%
weighted brightness
Luminance
0.4541
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Electric
Best ink
Black
10.08:1
Closest name
Lime Green
ΔE2000 1.2
Where it sits
Hue131° of 360°
Saturation89%
Lightness43%
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#0cd031
RGBrgb(12, 208, 49)
HSLhsl(131, 89%, 43%)
CMYKcmyk(94%, 0%, 76%, 18%)
LABlab(73.2 -71.6 62.2)
LCHlch(73.2 94.8 139.0)
OKLCHoklch(0.745 0.238 144.1)
Decimal839729
Display P3color(display-p3 0.047 0.816 0.192)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cd031 on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#0cd031 on black: 10.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D4BB06
deuteranopia · #C2AF43
tritanopia · #00CAB2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0cd031 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
#C4F8CE
#95F9A8
#60F67C
#2BF350
#0DE736
#0cd031
#099A24
#0B6F1E
#074613
Base = 700Lightest = 50 · #F2FDF4Darkest = 950 · #074613
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FBE9;
  --brand-200: #C4F8CE;
  --brand-300: #95F9A8;
  --brand-400: #60F67C;
  --brand-500: #2BF350;
  --brand-600: #0DE736;
  --brand-700: #0cd031;
  --brand-800: #099A24;
  --brand-900: #0B6F1E;
  --brand-950: #074613;
  --brand: #0cd031;
  --brand-ink: #000000;
}

Colors that work with #0cd031

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#4B9B5A
Captions on the surface
Accent#C808D4
Second voice, not a rival
Dark variant#07791C
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 #0cd031

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#D00CAB
Analogous left#49D00C
Analogous right#0CD093
Split-complement 1#930CD0
Split-complement 2#D00C49
Triadic 1#310CD0
Triadic 2#D0310C
Tetradic#0C49D0

RGB percentages

Red4.7%
Green81.6%
Blue19.2%

CMYK percentages

Cyan94.2%
Magenta0.0%
Yellow76.4%
Key (black)18.4%

Color previews

#0cd031 text on a black background

contrast 10.08:1

Card sample

#0cd031 text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cd031

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.

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

#0cd031, answered

What color is #0cd031?

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

What is the RGB value of #0cd031?

rgb(12, 208, 49) — 12 red, 208 green and 49 blue out of 255, or 4.7% / 81.6% / 19.2% by channel.

Is #0cd031 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4541 and perceived brightness is 63%, so black text on it reaches 10.08:1.

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

Black. It scores 10.08:1 against #0cd031, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #0cd031?

#D00CAB sits directly opposite on the wheel. Softer options are the split-complements #930CD0 and #D00C49, which give the same contrast with far less vibration.

What colors go well with #0cd031?

For interface work: #F4FAF5 as the surface, #C0EDC8 for borders, #4B9B5A for secondary text, #C808D4 as an accent and #07791C for hover and pressed states. For a palette, the analogous pair #49D00C and #0CD093 stays calm, while #D00CAB is the loudest partner.

What is #0cd031 in CMYK for printing?

cmyk(94%, 0%, 76%, 18%). 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 #0cd031 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 #2FD00C; nudged cooler, #0AD279.

Work with #0cd031 in the Color Lab