Skip to content

#0cfba1

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

RGB
12, 251, 161
HSL
157°, 97%, 52%
CMYK
95, 0, 36, 2
Luminance
0.7165

Every format

HEX#0cfba1
RGBrgb(12, 251, 161)
HSLhsl(157, 97%, 52%)
CMYKcmyk(95%, 0%, 36%, 2%)
LABlab(87.8 -69.4 29.6)
LCHlch(87.8 75.4 156.9)
OKLCHoklch(0.871 0.201 158.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red4.7%
Green98.4%
Blue63.1%

CMYK percentages

Cyan95.2%
Magenta0.0%
Yellow35.9%
Key (black)1.6%

Color previews

#0cfba1 text on a black background

contrast 15.33:1

Card sample

#0cfba1 text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cfba1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0cfba1 in the Color Lab