Skip to content

#0cff2d

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

RGB
12, 255, 45
HSL
128°, 100%, 52%
CMYK
95, 0, 82, 0
Luminance
0.7179

Every format

HEX#0cff2d
RGBrgb(12, 255, 45)
HSLhsl(128, 100%, 52%)
CMYKcmyk(95%, 0%, 82%, 0%)
LABlab(87.9 -84.7 77.1)
LCHlch(87.9 114.5 137.7)
OKLCHoklch(0.868 0.285 143.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cff2d on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#0cff2d on black: 15.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green100.0%
Blue17.6%

CMYK percentages

Cyan95.3%
Magenta0.0%
Yellow82.4%
Key (black)0.0%

Color previews

#0cff2d text on a black background

contrast 15.36:1

Card sample

#0cff2d text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cff2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cff2d in the Color Lab