Skip to content

#0cf730

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

RGB
12, 247, 48
HSL
129°, 94%, 51%
CMYK
95, 0, 81, 3
Luminance
0.6681

At a glance

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

Hex
#0cf730
Hue
129°
green
Saturation
94%
electric
Lightness
51%
balanced
Brightness
97%
HSV value
Perceived
75%
weighted brightness
Luminance
0.6681
WCAG relative
Temperature
Cool
66/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.36:1
Closest name
Lime
ΔE2000 2.4
Where it sits
Hue129° of 360°
Saturation94%
Lightness51%
Temperature
Warm ← → Cool66% 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#0cf730
RGBrgb(12, 247, 48)
HSLhsl(129, 94%, 51%)
CMYKcmyk(95%, 0%, 81%, 3%)
LABlab(85.4 -82.4 74.1)
LCHlch(85.4 110.8 138.0)
OKLCHoklch(0.848 0.277 143.5)
Decimal849712
Display P3color(display-p3 0.047 0.969 0.188)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cf730 on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#0cf730 on black: 14.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCDF00
deuteranopia · #E6D04A
tritanopia · #00F0D3

Color scale — 50 to 950

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

#F2FDF3
#E4FBE8
#C2FACB
#92FBA2
#5CFA74
#26F846
#0cf730
#07C524
#059E1D
#087219
#05470F
Base = 600Lightest = 50 · #F2FDF3Darkest = 950 · #05470F
:root {
  --brand-50: #F2FDF3;
  --brand-100: #E4FBE8;
  --brand-200: #C2FACB;
  --brand-300: #92FBA2;
  --brand-400: #5CFA74;
  --brand-500: #26F846;
  --brand-600: #0cf730;
  --brand-700: #07C524;
  --brand-800: #059E1D;
  --brand-900: #087219;
  --brand-950: #05470F;
  --brand: #0cf730;
  --brand-ink: #000000;
}

Colors that work with #0cf730

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#C0EDC7
Hairlines and dividers
Muted text#4B9B57
Captions on the surface
Accent#E407FC
Second voice, not a rival
Dark variant#047B16
Hover, pressed, headers
Light variant#E6FEEA
Selected rows, tints
Dark surface#142416
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 #0cf730

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#F70CD3
Analogous left#5EF70C
Analogous right#0CF7A6
Split-complement 1#A60CF7
Split-complement 2#F70C5E
Triadic 1#300CF7
Triadic 2#F7300C
Tetradic#0C5EF7

RGB percentages

Red4.7%
Green96.9%
Blue18.8%

CMYK percentages

Cyan95.1%
Magenta0.0%
Yellow80.6%
Key (black)3.1%

Color previews

#0cf730 text on a black background

contrast 14.36:1

Card sample

#0cf730 text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cf730

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.

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

#0cf730, answered

What color is #0cf730?

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

What is the RGB value of #0cf730?

rgb(12, 247, 48) — 12 red, 247 green and 48 blue out of 255, or 4.7% / 96.9% / 18.8% by channel.

Is #0cf730 a light or a dark color?

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

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

Black. It scores 14.36:1 against #0cf730, versus 1.46:1 for white — AAA at any size.

What is the complementary color of #0cf730?

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

What colors go well with #0cf730?

For interface work: #F4FAF5 as the surface, #C0EDC7 for borders, #4B9B57 for secondary text, #E407FC as an accent and #047B16 for hover and pressed states. For a palette, the analogous pair #5EF70C and #0CF7A6 stays calm, while #F70CD3 is the loudest partner.

What is #0cf730 in CMYK for printing?

cmyk(95%, 0%, 81%, 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 #0cf730 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3EF70C; nudged cooler, #0AF986.

Work with #0cf730 in the Color Lab