Skip to content

#0cbf39

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

RGB
12, 191, 57
HSL
135°, 88%, 40%
CMYK
94, 0, 70, 25
Luminance
0.3764

Every format

HEX#0cbf39
RGBrgb(12, 191, 57)
HSLhsl(135, 88%, 40%)
CMYKcmyk(94%, 0%, 70%, 25%)
LABlab(67.8 -66.0 53.8)
LCHlch(67.8 85.2 140.8)
OKLCHoklch(0.700 0.216 145.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cbf39 on white: 2.46:1
AA ✗ fail · AA-large · AAA
Aa
#0cbf39 on black: 8.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green74.9%
Blue22.4%

CMYK percentages

Cyan93.7%
Magenta0.0%
Yellow70.2%
Key (black)25.1%

Color previews

#0cbf39 text on a black background

contrast 8.53:1

Card sample

#0cbf39 text on a white background

contrast 2.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cbf39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cbf39 in the Color Lab