Skip to content

#0cf404

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

RGB
12, 244, 4
HSL
118°, 97%, 49%
CMYK
95, 0, 98, 4
Luminance
0.6479

At a glance

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

Hex
#0cf404
Hue
118°
green
Saturation
97%
electric
Lightness
49%
balanced
Brightness
96%
HSV value
Perceived
73%
weighted brightness
Luminance
0.6479
WCAG relative
Temperature
Cool
62/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.96:1
Closest name
Lime
ΔE2000 2.3
Where it sits
Hue118° of 360°
Saturation97%
Lightness49%
Temperature
Warm ← → Cool62% 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#0cf404
RGBrgb(12, 244, 4)
HSLhsl(118, 97%, 49%)
CMYKcmyk(95%, 0%, 98%, 4%)
LABlab(84.4 -82.9 80.2)
LCHlch(84.4 115.3 136.0)
OKLCHoklch(0.839 0.284 142.4)
Decimal848900
Display P3color(display-p3 0.047 0.957 0.016)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cf404 on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#0cf404 on black: 13.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FADB00
deuteranopia · #E4CD38
tritanopia · #00ECCF

Color scale — 50 to 950

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

#F2FDF1
#E4FCE4
#C3FBC1
#94FD91
#5FFC59
#29FB22
#0cf404
#0AC903
#08A103
#0A7407
#064804
Base = 600Lightest = 50 · #F2FDF1Darkest = 950 · #064804
:root {
  --brand-50: #F2FDF1;
  --brand-100: #E4FCE4;
  --brand-200: #C3FBC1;
  --brand-300: #94FD91;
  --brand-400: #5FFC59;
  --brand-500: #29FB22;
  --brand-600: #0cf404;
  --brand-700: #0AC903;
  --brand-800: #08A103;
  --brand-900: #0A7407;
  --brand-950: #064804;
  --brand: #0cf404;
  --brand-ink: #000000;
}

Colors that work with #0cf404

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#F4FAF4
Tinted page background
Border#C1EDC0
Hairlines and dividers
Muted text#4D9B4B
Captions on the surface
Accent#B200F8
Second voice, not a rival
Dark variant#067D02
Hover, pressed, headers
Light variant#E7FFE6
Selected rows, tints
Dark surface#142414
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 #0cf404

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#EC04F4
Analogous left#84F404
Analogous right#04F474
Split-complement 1#7404F4
Split-complement 2#F40484
Triadic 1#040CF4
Triadic 2#F4040C
Tetradic#0484F4

RGB percentages

Red4.7%
Green95.7%
Blue1.6%

CMYK percentages

Cyan95.1%
Magenta0.0%
Yellow98.4%
Key (black)4.3%

Color previews

#0cf404 text on a black background

contrast 13.96:1

Card sample

#0cf404 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 244, 4, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 244, 4, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0cf404;
background: linear-gradient(135deg, #0cf404, #04F49C);

Monochromatic scale

Palettes built from #0cf404

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.

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

#0cf404, answered

What color is #0cf404?

#0cf404 is a balanced electric green, closest to Lime (ΔE2000 2.3). It sits at 118° on the hue wheel with 97% saturation and 49% lightness, which reads as cool.

What is the RGB value of #0cf404?

rgb(12, 244, 4) — 12 red, 244 green and 4 blue out of 255, or 4.7% / 95.7% / 1.6% by channel.

Is #0cf404 a light or a dark color?

It is a light color. Relative luminance is 0.6479 and perceived brightness is 73%, so black text on it reaches 13.96:1.

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

Black. It scores 13.96:1 against #0cf404, versus 1.50:1 for white — AAA at any size.

What is the complementary color of #0cf404?

#EC04F4 sits directly opposite on the wheel. Softer options are the split-complements #7404F4 and #F40484, which give the same contrast with far less vibration.

What colors go well with #0cf404?

For interface work: #F4FAF4 as the surface, #C1EDC0 for borders, #4D9B4B for secondary text, #B200F8 as an accent and #067D02 for hover and pressed states. For a palette, the analogous pair #84F404 and #04F474 stays calm, while #EC04F4 is the loudest partner.

What is #0cf404 in CMYK for printing?

cmyk(95%, 0%, 98%, 4%). 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 #0cf404 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #64F404; nudged cooler, #01F653.

Work with #0cf404 in the Color Lab