Skip to content

#0cf697

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

RGB
12, 246, 151
HSL
156°, 93%, 51%
CMYK
95, 0, 39, 4
Luminance
0.6822

At a glance

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

Hex
#0cf697
Hue
156°
green
Saturation
93%
electric
Lightness
51%
balanced
Brightness
96%
HSV value
Perceived
77%
weighted brightness
Luminance
0.6822
WCAG relative
Temperature
Cool
77/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.64:1
Closest name
Medium Spring Green
ΔE2000 0.8
Where it sits
Hue156° of 360°
Saturation93%
Lightness51%
Temperature
Warm ← → Cool77% 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#0cf697
RGBrgb(12, 246, 151)
HSLhsl(156, 93%, 51%)
CMYKcmyk(95%, 0%, 39%, 4%)
LABlab(86.1 -69.6 32.4)
LCHlch(86.1 76.8 155.1)
OKLCHoklch(0.857 0.204 156.7)
Decimal849559
Display P3color(display-p3 0.047 0.965 0.592)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cf697 on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#0cf697 on black: 14.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F4E191
deuteranopia · #DDD19D
tritanopia · #00F4DE

Color scale — 50 to 950

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

#F2FDF8
#E4FBF2
#C2F9E3
#93FBD1
#5DF9B9
#27F7A2
#0cf697
#07C578
#069D60
#097247
#06472C
Base = 600Lightest = 50 · #F2FDF8Darkest = 950 · #06472C
:root {
  --brand-50: #F2FDF8;
  --brand-100: #E4FBF2;
  --brand-200: #C2F9E3;
  --brand-300: #93FBD1;
  --brand-400: #5DF9B9;
  --brand-500: #27F7A2;
  --brand-600: #0cf697;
  --brand-700: #07C578;
  --brand-800: #069D60;
  --brand-900: #097247;
  --brand-950: #06472C;
  --brand: #0cf697;
  --brand-ink: #000000;
}

Colors that work with #0cf697

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#F4FAF8
Tinted page background
Border#C0EDDA
Hairlines and dividers
Muted text#4B9B7A
Captions on the surface
Accent#FB07A7
Second voice, not a rival
Dark variant#057B4B
Hover, pressed, headers
Light variant#E6FEF4
Selected rows, tints
Dark surface#14241E
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 #0cf697

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#F60C6B
Analogous left#0CF622
Analogous right#0CE0F6
Split-complement 1#F60CE0
Split-complement 2#F6220C
Triadic 1#970CF6
Triadic 2#F6970C
Tetradic#220CF6

RGB percentages

Red4.7%
Green96.5%
Blue59.2%

CMYK percentages

Cyan95.1%
Magenta0.0%
Yellow38.6%
Key (black)3.5%

Color previews

#0cf697 text on a black background

contrast 14.64:1

Card sample

#0cf697 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cf697

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.

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

#0cf697, answered

What color is #0cf697?

#0cf697 is a balanced electric green — the CSS keyword Medium Spring Green. It sits at 156° on the hue wheel with 93% saturation and 51% lightness, which reads as cool.

What is the RGB value of #0cf697?

rgb(12, 246, 151) — 12 red, 246 green and 151 blue out of 255, or 4.7% / 96.5% / 59.2% by channel.

Is #0cf697 a light or a dark color?

It is a light color. Relative luminance is 0.6822 and perceived brightness is 77%, so black text on it reaches 14.64:1.

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

Black. It scores 14.64:1 against #0cf697, versus 1.43:1 for white — AAA at any size.

What is the complementary color of #0cf697?

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

What colors go well with #0cf697?

For interface work: #F4FAF8 as the surface, #C0EDDA for borders, #4B9B7A for secondary text, #FB07A7 as an accent and #057B4B for hover and pressed states. For a palette, the analogous pair #0CF622 and #0CE0F6 stays calm, while #F60C6B is the loudest partner.

What is #0cf697 in CMYK for printing?

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

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0CF641; nudged cooler, #09F9EF.

Work with #0cf697 in the Color Lab