Skip to content

#0cd472

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

RGB
12, 212, 114
HSL
151°, 89%, 44%
CMYK
94, 0, 46, 17
Luminance
0.4838

Every format

HEX#0cd472
RGBrgb(12, 212, 114)
HSLhsl(151, 89%, 44%)
CMYKcmyk(94%, 0%, 46%, 17%)
LABlab(75.1 -64.9 36.5)
LCHlch(75.1 74.5 150.7)
OKLCHoklch(0.763 0.196 152.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cd472 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#0cd472 on black: 10.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green83.1%
Blue44.7%

CMYK percentages

Cyan94.3%
Magenta0.0%
Yellow46.2%
Key (black)16.9%

Color previews

#0cd472 text on a black background

contrast 10.68:1

Card sample

#0cd472 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cd472

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cd472 in the Color Lab