Skip to content

#0cc56f

a dark, electric green · cool · closest name: forestgreen

RGB
12, 197, 111
HSL
152°, 89%, 41%
CMYK
94, 0, 44, 23
Luminance
0.4116

Every format

HEX#0cc56f
RGBrgb(12, 197, 111)
HSLhsl(152, 89%, 41%)
CMYKcmyk(94%, 0%, 44%, 23%)
LABlab(70.3 -60.4 31.8)
LCHlch(70.3 68.3 152.2)
OKLCHoklch(0.723 0.180 154.1)

Copy-ready code

/* CSS */
color: #0cc56f;
background-color: #0cc56f;
/* Tailwind (arbitrary) */
class="text-[#0cc56f] bg-[#0cc56f]"
/* SCSS */
$brand: #0cc56f;
/* SwiftUI */
Color(red: 0.047, green: 0.773, blue: 0.435)
/* Android */
Color.parseColor("#0cc56f")

Accessibility — WCAG contrast

Aa
#0cc56f on white: 2.27:1
AA ✗ fail · AA-large · AAA
Aa
#0cc56f on black: 9.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green77.3%
Blue43.5%

CMYK percentages

Cyan93.9%
Magenta0.0%
Yellow43.7%
Key (black)22.7%

Color previews

#0cc56f text on a black background

contrast 9.23:1

Card sample

#0cc56f text on a white background

contrast 2.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cc56f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cc56f in the Color Lab