Skip to content

#8fba2d

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

RGB
143, 186, 45
HSL
78°, 61%, 45%
CMYK
23, 0, 76, 27
Luminance
0.4115

Every format

HEX#8fba2d
RGBrgb(143, 186, 45)
HSLhsl(78, 61%, 45%)
CMYKcmyk(23%, 0%, 76%, 27%)
LABlab(70.3 -33.9 62.0)
LCHlch(70.3 70.7 118.6)
OKLCHoklch(0.732 0.169 125.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8fba2d on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#8fba2d on black: 9.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green72.9%
Blue17.6%

CMYK percentages

Cyan23.1%
Magenta0.0%
Yellow75.8%
Key (black)27.1%

Color previews

#8fba2d text on a black background

contrast 9.23:1

Card sample

#8fba2d text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 186, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 186, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8fba2d;
background: linear-gradient(135deg, #8fba2d, #31BA2D);

Monochromatic scale

Palettes built from #8fba2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8fba2d in the Color Lab