Skip to content

#40af0f

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

RGB
64, 175, 15
HSL
102°, 84%, 37%
CMYK
63, 0, 91, 31
Luminance
0.3178

Every format

HEX#40af0f
RGBrgb(64, 175, 15)
HSLhsl(102, 84%, 37%)
CMYKcmyk(63%, 0%, 91%, 31%)
LABlab(63.2 -56.6 61.8)
LCHlch(63.2 83.8 132.5)
OKLCHoklch(0.664 0.206 139.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40af0f on white: 2.85:1
AA ✗ fail · AA-large · AAA
Aa
#40af0f on black: 7.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green68.6%
Blue5.9%

CMYK percentages

Cyan63.4%
Magenta0.0%
Yellow91.4%
Key (black)31.4%

Color previews

#40af0f text on a black background

contrast 7.36:1

Card sample

#40af0f text on a white background

contrast 2.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40af0f;
Background color
Panel with #40af0f background
background-color: #40af0f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 175, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 175, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40af0f;
background: linear-gradient(135deg, #40af0f, #0FAF49);

Monochromatic scale

Palettes built from #40af0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40af0f in the Color Lab