Skip to content

#0cf84a

a balanced, electric green · cool · closest name: Lime

RGB
12, 248, 74
HSL
136°, 94%, 51%
CMYK
95, 0, 70, 3
Luminance
0.6771

At a glance

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

Hex
#0cf84a
Hue
136°
green
Saturation
94%
electric
Lightness
51%
balanced
Brightness
97%
HSV value
Perceived
75%
weighted brightness
Luminance
0.6771
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.54:1
Closest name
Lime
ΔE2000 3.9
Where it sits
Hue136° of 360°
Saturation94%
Lightness51%
Temperature
Warm ← → Cool69% 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#0cf84a
RGBrgb(12, 248, 74)
HSLhsl(136, 94%, 51%)
CMYKcmyk(95%, 0%, 70%, 3%)
LABlab(85.9 -80.8 66.5)
LCHlch(85.9 104.6 140.6)
OKLCHoklch(0.852 0.265 145.1)
Decimal849994
Display P3color(display-p3 0.047 0.973 0.290)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cf84a on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#0cf84a on black: 14.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCE02E
deuteranopia · #E6D15C
tritanopia · #00F1D6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0cf84a is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2FDF5
#E4FBEA
#C2FAD1
#92FCAE
#5BFA85
#25F95D
#0cf84a
#06C638
#059F2D
#087224
#054717
Base = 600Lightest = 50 · #F2FDF5Darkest = 950 · #054717
:root {
  --brand-50: #F2FDF5;
  --brand-100: #E4FBEA;
  --brand-200: #C2FAD1;
  --brand-300: #92FCAE;
  --brand-400: #5BFA85;
  --brand-500: #25F95D;
  --brand-600: #0cf84a;
  --brand-700: #06C638;
  --brand-800: #059F2D;
  --brand-900: #087224;
  --brand-950: #054717;
  --brand: #0cf84a;
  --brand-ink: #000000;
}

Colors that work with #0cf84a

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#F4FAF6
Tinted page background
Border#C0EDCC
Hairlines and dividers
Muted text#4B9B60
Captions on the surface
Accent#FD07FA
Second voice, not a rival
Dark variant#047C23
Hover, pressed, headers
Light variant#E6FEED
Selected rows, tints
Dark surface#142418
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 #0cf84a

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
  • 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
  • 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#F80CBA
Analogous left#44F80C
Analogous right#0CF8C0
Split-complement 1#C00CF8
Split-complement 2#F80C44
Triadic 1#4A0CF8
Triadic 2#F84A0C
Tetradic#0C44F8

RGB percentages

Red4.7%
Green97.3%
Blue29.0%

CMYK percentages

Cyan95.2%
Magenta0.0%
Yellow70.2%
Key (black)2.7%

Color previews

#0cf84a text on a black background

contrast 14.54:1

Card sample

#0cf84a text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cf84a

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.

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

#0cf84a, answered

What color is #0cf84a?

#0cf84a is a balanced electric green, closest to Lime (ΔE2000 3.9). It sits at 136° on the hue wheel with 94% saturation and 51% lightness, which reads as cool.

What is the RGB value of #0cf84a?

rgb(12, 248, 74) — 12 red, 248 green and 74 blue out of 255, or 4.7% / 97.3% / 29% by channel.

Is #0cf84a a light or a dark color?

It is a light color. Relative luminance is 0.6771 and perceived brightness is 75%, so black text on it reaches 14.54:1.

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

Black. It scores 14.54:1 against #0cf84a, versus 1.44:1 for white — AAA at any size.

What is the complementary color of #0cf84a?

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

What colors go well with #0cf84a?

For interface work: #F4FAF6 as the surface, #C0EDCC for borders, #4B9B60 for secondary text, #FD07FA as an accent and #047C23 for hover and pressed states. For a palette, the analogous pair #44F80C and #0CF8C0 stays calm, while #F80CBA is the loudest partner.

What is #0cf84a in CMYK for printing?

cmyk(95%, 0%, 70%, 3%). 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 #0cf84a warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #24F80C; nudged cooler, #0AFBA1.

Work with #0cf84a in the Color Lab