Skip to content

#0cbf4f

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

RGB
12, 191, 79
HSL
143°, 88%, 40%
CMYK
94, 0, 59, 25
Luminance
0.3790

At a glance

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

Hex
#0cbf4f
Hue
143°
green
Saturation
88%
electric
Lightness
40%
dark
Brightness
75%
HSV value
Perceived
58%
weighted brightness
Luminance
0.3790
WCAG relative
Temperature
Cool
72/100 cool
Color family
Green
Tone
Electric
Best ink
Black
8.58:1
Closest name
Lime Green
ΔE2000 6
Where it sits
Hue143° of 360°
Saturation88%
Lightness40%
Temperature
Warm ← → Cool72% 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#0cbf4f
RGBrgb(12, 191, 79)
HSLhsl(143, 88%, 40%)
CMYKcmyk(94%, 0%, 59%, 25%)
LABlab(68.0 -63.5 44.6)
LCHlch(68.0 77.6 144.9)
OKLCHoklch(0.703 0.200 148.1)
Decimal835407
Display P3color(display-p3 0.047 0.749 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cbf4f on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#0cbf4f on black: 8.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C1AD44
deuteranopia · #B0A158
tritanopia · #00BBA7

Color scale — 50 to 950

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

#F2FDF6
#E5FAED
#C4F8D7
#95F8BB
#61F598
#2CF276
#0EE65F
#0cbf4f
#0A9A40
#0C6F31
#07451E
Base = 700Lightest = 50 · #F2FDF6Darkest = 950 · #07451E
:root {
  --brand-50: #F2FDF6;
  --brand-100: #E5FAED;
  --brand-200: #C4F8D7;
  --brand-300: #95F8BB;
  --brand-400: #61F598;
  --brand-500: #2CF276;
  --brand-600: #0EE65F;
  --brand-700: #0cbf4f;
  --brand-800: #0A9A40;
  --brand-900: #0C6F31;
  --brand-950: #07451E;
  --brand: #0cbf4f;
  --brand-ink: #000000;
}

Colors that work with #0cbf4f

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#F4FAF7
Tinted page background
Border#C0EDD1
Hairlines and dividers
Muted text#4B9B69
Captions on the surface
Accent#C308AC
Second voice, not a rival
Dark variant#087832
Hover, pressed, headers
Light variant#E7FDEF
Selected rows, tints
Dark surface#14241A
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 #0cbf4f

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#BF0C7C
Analogous left#22BF0C
Analogous right#0CBFA9
Split-complement 1#A90CBF
Split-complement 2#BF0C22
Triadic 1#4F0CBF
Triadic 2#BF4F0C
Tetradic#0C22BF

RGB percentages

Red4.7%
Green74.9%
Blue31.0%

CMYK percentages

Cyan93.7%
Magenta0.0%
Yellow58.6%
Key (black)25.1%

Color previews

#0cbf4f text on a black background

contrast 8.58:1

Card sample

#0cbf4f text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cbf4f

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.

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

#0cbf4f, answered

What color is #0cbf4f?

#0cbf4f is a dark electric green, closest to Lime Green (ΔE2000 6). It sits at 143° on the hue wheel with 88% saturation and 40% lightness, which reads as cool.

What is the RGB value of #0cbf4f?

rgb(12, 191, 79) — 12 red, 191 green and 79 blue out of 255, or 4.7% / 74.9% / 31% by channel.

Is #0cbf4f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3790 and perceived brightness is 58%, so black text on it reaches 8.58:1.

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

Black. It scores 8.58:1 against #0cbf4f, versus 2.45:1 for white — AAA at any size.

What is the complementary color of #0cbf4f?

#BF0C7C sits directly opposite on the wheel. Softer options are the split-complements #A90CBF and #BF0C22, which give the same contrast with far less vibration.

What colors go well with #0cbf4f?

For interface work: #F4FAF7 as the surface, #C0EDD1 for borders, #4B9B69 for secondary text, #C308AC as an accent and #087832 for hover and pressed states. For a palette, the analogous pair #22BF0C and #0CBFA9 stays calm, while #BF0C7C is the loudest partner.

What is #0cbf4f in CMYK for printing?

cmyk(94%, 0%, 59%, 25%). 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 #0cbf4f warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0CBF0D; nudged cooler, #0AC192.

Work with #0cbf4f in the Color Lab