Skip to content

#8af02f

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

RGB
138, 240, 47
HSL
92°, 87%, 56%
CMYK
43, 0, 80, 6
Luminance
0.6793

Every format

HEX#8af02f
RGBrgb(138, 240, 47)
HSLhsl(92, 87%, 56%)
CMYKcmyk(43%, 0%, 80%, 6%)
LABlab(86.0 -58.2 75.9)
LCHlch(86.0 95.7 127.5)
OKLCHoklch(0.860 0.234 134.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8af02f on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#8af02f on black: 14.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green94.1%
Blue18.4%

CMYK percentages

Cyan42.5%
Magenta0.0%
Yellow80.4%
Key (black)5.9%

Color previews

#8af02f text on a black background

contrast 14.59:1

Card sample

#8af02f text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8af02f;
Background color
Panel with #8af02f background
background-color: #8af02f;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8af02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8af02f in the Color Lab