Skip to content

#008040

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

RGB
0, 128, 64
HSL
150°, 100%, 25%
CMYK
100, 0, 50, 50
Luminance
0.1581

Every format

HEX#008040
RGBrgb(0, 128, 64)
HSLhsl(150, 100%, 25%)
CMYKcmyk(100%, 0%, 50%, 50%)
LABlab(46.7 -45.5 26.4)
LCHlch(46.7 52.6 149.9)
OKLCHoklch(0.525 0.138 152.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#008040 on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#008040 on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.0%
Green50.2%
Blue25.1%

CMYK percentages

Cyan100.0%
Magenta0.0%
Yellow50.0%
Key (black)49.8%

Color previews

#008040 text on a black background

contrast 4.16:1

Card sample

#008040 text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(0, 128, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 128, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #008040;
background: linear-gradient(135deg, #008040, #006B80);

Monochromatic scale

Palettes built from #008040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #008040 in the Color Lab