Skip to content

#0cad2f

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

RGB
12, 173, 47
HSL
133°, 87%, 36%
CMYK
93, 0, 73, 32
Luminance
0.3017

Every format

HEX#0cad2f
RGBrgb(12, 173, 47)
HSLhsl(133, 87%, 36%)
CMYKcmyk(93%, 0%, 73%, 32%)
LABlab(61.8 -61.5 51.5)
LCHlch(61.8 80.2 140.1)
OKLCHoklch(0.651 0.203 144.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0cad2f on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#0cad2f on black: 7.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green67.8%
Blue18.4%

CMYK percentages

Cyan93.1%
Magenta0.0%
Yellow72.8%
Key (black)32.2%

Color previews

#0cad2f text on a black background

contrast 7.03:1

Card sample

#0cad2f text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cad2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cad2f in the Color Lab