Skip to content

#0cd45b

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

RGB
12, 212, 91
HSL
144°, 89%, 44%
CMYK
94, 0, 57, 17
Luminance
0.4792

Every format

HEX#0cd45b
RGBrgb(12, 212, 91)
HSLhsl(144, 89%, 44%)
CMYKcmyk(94%, 0%, 57%, 17%)
LABlab(74.8 -68.4 47.1)
LCHlch(74.8 83.1 145.4)
OKLCHoklch(0.760 0.215 148.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cd45b on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#0cd45b on black: 10.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green83.1%
Blue35.7%

CMYK percentages

Cyan94.3%
Magenta0.0%
Yellow57.1%
Key (black)16.9%

Color previews

#0cd45b text on a black background

contrast 10.58:1

Card sample

#0cd45b text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cd45b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cd45b in the Color Lab