Skip to content

#8fba1c

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

RGB
143, 186, 28
HSL
76°, 74%, 42%
CMYK
23, 0, 85, 27
Luminance
0.4104

Every format

HEX#8fba1c
RGBrgb(143, 186, 28)
HSLhsl(76, 74%, 42%)
CMYKcmyk(23%, 0%, 85%, 27%)
LABlab(70.2 -34.6 66.7)
LCHlch(70.2 75.1 117.4)
OKLCHoklch(0.732 0.176 125.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red56.1%
Green72.9%
Blue11.0%

CMYK percentages

Cyan23.1%
Magenta0.0%
Yellow84.9%
Key (black)27.1%

Color previews

#8fba1c text on a black background

contrast 9.21:1

Card sample

#8fba1c text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8fba1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8fba1c in the Color Lab