Skip to content

#0fec0f

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

RGB
15, 236, 15
HSL
120°, 88%, 49%
CMYK
94, 0, 94, 8
Luminance
0.6013

At a glance

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

Hex
#0fec0f
Hue
120°
green
Saturation
88%
electric
Lightness
49%
balanced
Brightness
93%
HSV value
Perceived
71%
weighted brightness
Luminance
0.6013
WCAG relative
Temperature
Cool
63/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.03:1
Closest name
Lime
ΔE2000 4.1
Where it sits
Hue120° of 360°
Saturation88%
Lightness49%
Temperature
Warm ← → Cool63% 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#0fec0f
RGBrgb(15, 236, 15)
HSLhsl(120, 88%, 49%)
CMYKcmyk(94%, 0%, 94%, 8%)
LABlab(81.9 -80.5 77.2)
LCHlch(81.9 111.6 136.2)
OKLCHoklch(0.818 0.275 142.5)
Decimal1043471
Display P3color(display-p3 0.059 0.925 0.059)

Copy-ready code

/* CSS */
color: #0fec0f;
background-color: #0fec0f;
/* Tailwind (arbitrary) */
class="text-[#0fec0f] bg-[#0fec0f]"
/* SCSS */
$brand: #0fec0f;
/* SwiftUI */
Color(red: 0.059, green: 0.925, blue: 0.059)
/* Android */
Color.parseColor("#0fec0f")
/* Flutter */
Color(0xFF0FEC0F)
/* Python / OpenCV (BGR) */
(15, 236, 15)

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 #0fec0f · 13.03:1
Use #000000AAA at every size.
Aa
White text · 1.61:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.03:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #0fec0f as text scores 1.61:1 on white and 13.03:1 on black.

Accessibility — WCAG contrast

Aa
#0fec0f on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#0fec0f on black: 13.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F1D400
deuteranopia · #DDC639
tritanopia · #00E5C9

Color scale — 50 to 950

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

#F2FDF2
#E5FAE5
#C4F8C4
#96F896
#61F561
#2CF22C
#0fec0f
#0CC00C
#0A990A
#0C6F0C
#074507
Base = 600Lightest = 50 · #F2FDF2Darkest = 950 · #074507
:root {
  --brand-50: #F2FDF2;
  --brand-100: #E5FAE5;
  --brand-200: #C4F8C4;
  --brand-300: #96F896;
  --brand-400: #61F561;
  --brand-500: #2CF22C;
  --brand-600: #0fec0f;
  --brand-700: #0CC00C;
  --brand-800: #0A990A;
  --brand-900: #0C6F0C;
  --brand-950: #074507;
  --brand: #0fec0f;
  --brand-ink: #000000;
}

Colors that work with #0fec0f

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#C0EDC0
Hairlines and dividers
Muted text#4B9B4B
Captions on the surface
Accent#B70AF1
Second voice, not a rival
Dark variant#087808
Hover, pressed, headers
Light variant#E7FDE7
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 #0fec0f

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#EC0FEC
Analogous left#7DEC0F
Analogous right#0FEC7D
Split-complement 1#7D0FEC
Split-complement 2#EC0F7D
Triadic 1#0F0FEC
Triadic 2#EC0F0F
Tetradic#0F7DEC

RGB percentages

Red5.9%
Green92.5%
Blue5.9%

CMYK percentages

Cyan93.6%
Magenta0.0%
Yellow93.6%
Key (black)7.5%

Color previews

#0fec0f text on a black background

contrast 13.03:1

Card sample

#0fec0f text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0fec0f

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.

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

#0fec0f, answered

What color is #0fec0f?

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

What is the RGB value of #0fec0f?

rgb(15, 236, 15) — 15 red, 236 green and 15 blue out of 255, or 5.9% / 92.5% / 5.9% by channel.

Is #0fec0f a light or a dark color?

It is a light color. Relative luminance is 0.6013 and perceived brightness is 71%, so black text on it reaches 13.03:1.

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

Black. It scores 13.03:1 against #0fec0f, versus 1.61:1 for white — AAA at any size.

What is the complementary color of #0fec0f?

#EC0FEC sits directly opposite on the wheel. Softer options are the split-complements #7D0FEC and #EC0F7D, which give the same contrast with far less vibration.

What colors go well with #0fec0f?

For interface work: #F4FAF4 as the surface, #C0EDC0 for borders, #4B9B4B for secondary text, #B70AF1 as an accent and #087808 for hover and pressed states. For a palette, the analogous pair #7DEC0F and #0FEC7D stays calm, while #EC0FEC is the loudest partner.

What is #0fec0f in CMYK for printing?

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

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #60EC0F; nudged cooler, #0DEE5F.

Work with #0fec0f in the Color Lab