Skip to content

#0fac3f

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

RGB
15, 172, 63
HSL
138°, 84%, 37%
CMYK
91, 0, 63, 33
Luminance
0.2997

Every format

HEX#0fac3f
RGBrgb(15, 172, 63)
HSLhsl(138, 84%, 37%)
CMYKcmyk(91%, 0%, 63%, 33%)
LABlab(61.6 -59.4 44.7)
LCHlch(61.6 74.3 143.1)
OKLCHoklch(0.650 0.191 146.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0fac3f on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#0fac3f on black: 6.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green67.5%
Blue24.7%

CMYK percentages

Cyan91.3%
Magenta0.0%
Yellow63.4%
Key (black)32.5%

Color previews

#0fac3f text on a black background

contrast 6.99:1

Card sample

#0fac3f text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 172, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 172, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0fac3f;
background: linear-gradient(135deg, #0fac3f, #0FACA8);

Monochromatic scale

Palettes built from #0fac3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0fac3f in the Color Lab