Skip to content

#0cfd7c

a balanced, electric green · cool · “Spring Green”

RGB
12, 253, 124
HSL
148°, 98%, 52%
CMYK
95, 0, 51, 1
Luminance
0.7178

At a glance

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

Hex
#0cfd7c
Hue
148°
green
Saturation
98%
electric
Lightness
52%
balanced
Brightness
99%
HSV value
Perceived
78%
weighted brightness
Luminance
0.7178
WCAG relative
Temperature
Cool
74/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.36:1
Closest name
Spring Green
ΔE2000 0.5
Where it sits
Hue148° of 360°
Saturation98%
Lightness52%
Temperature
Warm ← → Cool74% 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#0cfd7c
RGBrgb(12, 253, 124)
HSLhsl(148, 98%, 52%)
CMYKcmyk(95%, 0%, 51%, 1%)
LABlab(87.9 -76.4 47.7)
LCHlch(87.9 90.1 148.0)
OKLCHoklch(0.870 0.235 150.6)
Decimal851324
Display P3color(display-p3 0.047 0.992 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cfd7c on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#0cfd7c on black: 15.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FEE671
deuteranopia · #E7D686
tritanopia · #00F9DF

Color scale — 50 to 950

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

#F1FEF7
#E3FCEF
#C1FBDC
#90FEC3
#58FEA5
#0cfd7c
#02F372
#02CA5F
#01A24C
#067539
#044924
Base = 500Lightest = 50 · #F1FEF7Darkest = 950 · #044924
:root {
  --brand-50: #F1FEF7;
  --brand-100: #E3FCEF;
  --brand-200: #C1FBDC;
  --brand-300: #90FEC3;
  --brand-400: #58FEA5;
  --brand-500: #0cfd7c;
  --brand-600: #02F372;
  --brand-700: #02CA5F;
  --brand-800: #01A24C;
  --brand-900: #067539;
  --brand-950: #044924;
  --brand: #0cfd7c;
  --brand-ink: #000000;
}

Colors that work with #0cfd7c

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#C0EDD5
Hairlines and dividers
Muted text#4B9B70
Captions on the surface
Accent#FF0ACA
Second voice, not a rival
Dark variant#017E3B
Hover, pressed, headers
Light variant#E6FFF1
Selected rows, tints
Dark surface#14241B
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 #0cfd7c

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#FD0C8D
Analogous left#15FD0C
Analogous right#0CFDF5
Split-complement 1#F50CFD
Split-complement 2#FD0C15
Triadic 1#7C0CFD
Triadic 2#FD7C0C
Tetradic#0C15FD

RGB percentages

Red4.7%
Green99.2%
Blue48.6%

CMYK percentages

Cyan95.3%
Magenta0.0%
Yellow51.0%
Key (black)0.8%

Color previews

#0cfd7c text on a black background

contrast 15.36:1

Card sample

#0cfd7c text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cfd7c

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.

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

#0cfd7c, answered

What color is #0cfd7c?

#0cfd7c is a balanced electric green — the CSS keyword Spring Green. It sits at 148° on the hue wheel with 98% saturation and 52% lightness, which reads as cool.

What is the RGB value of #0cfd7c?

rgb(12, 253, 124) — 12 red, 253 green and 124 blue out of 255, or 4.7% / 99.2% / 48.6% by channel.

Is #0cfd7c a light or a dark color?

It is a light color. Relative luminance is 0.7178 and perceived brightness is 78%, so black text on it reaches 15.36:1.

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

Black. It scores 15.36:1 against #0cfd7c, versus 1.37:1 for white — AAA at any size.

What is the complementary color of #0cfd7c?

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

What colors go well with #0cfd7c?

For interface work: #F4FAF7 as the surface, #C0EDD5 for borders, #4B9B70 for secondary text, #FF0ACA as an accent and #017E3B for hover and pressed states. For a palette, the analogous pair #15FD0C and #0CFDF5 stays calm, while #FD0C8D is the loudest partner.

What is #0cfd7c in CMYK for printing?

cmyk(95%, 0%, 51%, 1%). 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 #0cfd7c warm or cool?

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

Work with #0cfd7c in the Color Lab