Skip to content

#7eb220

a dark, vivid green · cool · closest name: olivedrab

RGB
126, 178, 32
HSL
81°, 70%, 41%
CMYK
29, 0, 82, 30
Luminance
0.3638

Every format

HEX#7eb220
RGBrgb(126, 178, 32)
HSLhsl(81, 70%, 41%)
CMYKcmyk(29%, 0%, 82%, 30%)
LABlab(66.8 -37.5 62.3)
LCHlch(66.8 72.8 121.0)
OKLCHoklch(0.701 0.174 128.4)

Copy-ready code

/* CSS */
color: #7eb220;
background-color: #7eb220;
/* Tailwind (arbitrary) */
class="text-[#7eb220] bg-[#7eb220]"
/* SCSS */
$brand: #7eb220;
/* SwiftUI */
Color(red: 0.494, green: 0.698, blue: 0.125)
/* Android */
Color.parseColor("#7eb220")

Accessibility — WCAG contrast

Aa
#7eb220 on white: 2.54:1
AA ✗ fail · AA-large · AAA
Aa
#7eb220 on black: 8.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.4%
Green69.8%
Blue12.5%

CMYK percentages

Cyan29.2%
Magenta0.0%
Yellow82.0%
Key (black)30.2%

Color previews

#7eb220 text on a black background

contrast 8.28:1

Card sample

#7eb220 text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7eb220;
Background color
Panel with #7eb220 background
background-color: #7eb220;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(126, 178, 32, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(126, 178, 32, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7eb220;
background: linear-gradient(135deg, #7eb220, #20B223);

Monochromatic scale

Palettes built from #7eb220

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7eb220 in the Color Lab