Skip to content

#0cdf40

a balanced, electric green · cool · closest name: lime

RGB
12, 223, 64
HSL
135°, 90%, 46%
CMYK
95, 0, 71, 13
Luminance
0.5322

Every format

HEX#0cdf40
RGBrgb(12, 223, 64)
HSLhsl(135, 90%, 46%)
CMYKcmyk(95%, 0%, 71%, 13%)
LABlab(78.0 -74.6 61.9)
LCHlch(78.0 97.0 140.3)
OKLCHoklch(0.786 0.245 145.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cdf40 on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#0cdf40 on black: 11.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green87.5%
Blue25.1%

CMYK percentages

Cyan94.6%
Magenta0.0%
Yellow71.3%
Key (black)12.5%

Color previews

#0cdf40 text on a black background

contrast 11.64:1

Card sample

#0cdf40 text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cdf40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cdf40 in the Color Lab