Skip to content

#2f8908

a dark, electric green · neutral · closest name: Forest Green

RGB
47, 137, 8
HSL
102°, 89%, 28%
CMYK
66, 0, 94, 46
Luminance
0.1851

At a glance

Every number on this page in one read: what #2f8908 is made of, how bright it looks, and which way it leans.

Hex
#2f8908
Hue
102°
green
Saturation
89%
electric
Lightness
28%
dark
Brightness
54%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1851
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Green
Tone
Electric
Best ink
Black
4.70:1
Closest name
Forest Green
ΔE2000 2.8
Where it sits
Hue102° of 360°
Saturation89%
Lightness28%
Temperature
Warm ← → Cool55% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2f8908
RGBrgb(47, 137, 8)
HSLhsl(102, 89%, 28%)
CMYKcmyk(66%, 0%, 94%, 46%)
LABlab(50.1 -47.7 51.8)
LCHlch(50.1 70.4 132.6)
OKLCHoklch(0.554 0.173 139.4)
Decimal3115272
Display P3color(display-p3 0.184 0.537 0.031)

Copy-ready code

/* CSS */
color: #2f8908;
background-color: #2f8908;
/* Tailwind (arbitrary) */
class="text-[#2f8908] bg-[#2f8908]"
/* SCSS */
$brand: #2f8908;
/* SwiftUI */
Color(red: 0.184, green: 0.537, blue: 0.031)
/* Android */
Color.parseColor("#2f8908")
/* Flutter */
Color(0xFF2F8908)
/* Python / OpenCV (BGR) */
(8, 137, 47)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #2f8908 · 4.70:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.47:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.70:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2f8908 as text scores 4.47:1 on white and 4.70:1 on black.

Accessibility — WCAG contrast

Aa
#2f8908 on white: 4.47:1
AA ✗ fail · AA-large · AAA
Aa
#2f8908 on black: 4.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8D7C00
deuteranopia · #83751E
tritanopia · #228474

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f8908 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5FDF2
#EBFBE5
#D3F8C4
#B3F995
#8DF660
#67F32B
#4FE70D
#42C10B
#2f8908
#296F0B
#1A4607
Base = 800Lightest = 50 · #F5FDF2Darkest = 950 · #1A4607
:root {
  --brand-50: #F5FDF2;
  --brand-100: #EBFBE5;
  --brand-200: #D3F8C4;
  --brand-300: #B3F995;
  --brand-400: #8DF660;
  --brand-500: #67F32B;
  --brand-600: #4FE70D;
  --brand-700: #42C10B;
  --brand-800: #2f8908;
  --brand-900: #296F0B;
  --brand-950: #1A4607;
  --brand: #2f8908;
  --brand-ink: #000000;
}

Colors that work with #2f8908

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6FAF4
Tinted page background
Border#CDEDC0
Hairlines and dividers
Muted text#639B4B
Captions on the surface
Accent#41058C
Second voice, not a rival
Dark variant#297807
Hover, pressed, headers
Light variant#EEFEE7
Selected rows, tints
Dark surface#192414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2f8908

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#620889
Analogous left#6F8908
Analogous right#088922
Split-complement 1#220889
Split-complement 2#89086F
Triadic 1#082F89
Triadic 2#89082F
Tetradic#086F89

RGB percentages

Red18.4%
Green53.7%
Blue3.1%

CMYK percentages

Cyan65.7%
Magenta0.0%
Yellow94.2%
Key (black)46.3%

Color previews

#2f8908 text on a black background

contrast 4.70:1

Card sample

#2f8908 text on a white background

contrast 4.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 137, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 137, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f8908;
background: linear-gradient(135deg, #2f8908, #088937);

Monochromatic scale

Palettes built from #2f8908

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2f8908 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2f8908, answered

What color is #2f8908?

#2f8908 is a dark electric green, closest to Forest Green (ΔE2000 2.8). It sits at 102° on the hue wheel with 89% saturation and 28% lightness, which reads as neutral.

What is the RGB value of #2f8908?

rgb(47, 137, 8) — 47 red, 137 green and 8 blue out of 255, or 18.4% / 53.7% / 3.1% by channel.

Is #2f8908 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1851 and perceived brightness is 42%, so black text on it reaches 4.70:1.

Should I use black or white text on #2f8908?

Black. It scores 4.70:1 against #2f8908, versus 4.47:1 for white — AA at any size.

What is the complementary color of #2f8908?

#620889 sits directly opposite on the wheel. Softer options are the split-complements #220889 and #89086F, which give the same contrast with far less vibration.

What colors go well with #2f8908?

For interface work: #F6FAF4 as the surface, #CDEDC0 for borders, #639B4B for secondary text, #41058C as an accent and #297807 for hover and pressed states. For a palette, the analogous pair #6F8908 and #088922 stays calm, while #620889 is the loudest partner.

What is #2f8908 in CMYK for printing?

cmyk(66%, 0%, 94%, 46%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2f8908 warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5E8908; nudged cooler, #078A0F.

Work with #2f8908 in the Color Lab