Skip to content

#2f9012

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

RGB
47, 144, 18
HSL
106°, 78%, 32%
CMYK
67, 0, 88, 44
Luminance
0.2059

At a glance

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

Hex
#2f9012
Hue
106°
green
Saturation
78%
electric
Lightness
32%
dark
Brightness
56%
HSV value
Perceived
44%
weighted brightness
Luminance
0.2059
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Green
Tone
Electric
Best ink
Black
5.12:1
Closest name
Forest Green
ΔE2000 3
Where it sits
Hue106° of 360°
Saturation78%
Lightness32%
Temperature
Warm ← → Cool57% 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#2f9012
RGBrgb(47, 144, 18)
HSLhsl(106, 78%, 32%)
CMYKcmyk(67%, 0%, 88%, 44%)
LABlab(52.5 -49.7 51.9)
LCHlch(52.5 71.9 133.8)
OKLCHoklch(0.574 0.178 140.2)
Decimal3117074
Display P3color(display-p3 0.184 0.565 0.071)

Copy-ready code

/* CSS */
color: #2f9012;
background-color: #2f9012;
/* Tailwind (arbitrary) */
class="text-[#2f9012] bg-[#2f9012]"
/* SCSS */
$brand: #2f9012;
/* SwiftUI */
Color(red: 0.184, green: 0.565, blue: 0.071)
/* Android */
Color.parseColor("#2f9012")
/* Flutter */
Color(0xFF2F9012)
/* Python / OpenCV (BGR) */
(18, 144, 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 #2f9012 · 5.12:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.10:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.12:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2f9012 as text scores 4.10:1 on white and 5.12:1 on black.

Accessibility — WCAG contrast

Aa
#2f9012 on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#2f9012 on black: 5.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #948200
deuteranopia · #897A24
tritanopia · #1E8B7A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f9012 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.

#F5FCF3
#EBF9E6
#D2F5C7
#AFF39B
#87EC69
#60E638
#47DA1B
#3BB517
#2f9012
#266911
#17420B
Base = 800Lightest = 50 · #F5FCF3Darkest = 950 · #17420B
:root {
  --brand-50: #F5FCF3;
  --brand-100: #EBF9E6;
  --brand-200: #D2F5C7;
  --brand-300: #AFF39B;
  --brand-400: #87EC69;
  --brand-500: #60E638;
  --brand-600: #47DA1B;
  --brand-700: #3BB517;
  --brand-800: #2f9012;
  --brand-900: #266911;
  --brand-950: #17420B;
  --brand: #2f9012;
  --brand-ink: #000000;
}

Colors that work with #2f9012

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#CAEDC0
Hairlines and dividers
Muted text#5D9B4B
Captions on the surface
Accent#540F93
Second voice, not a rival
Dark variant#25710E
Hover, pressed, headers
Light variant#EDFCE8
Selected rows, tints
Dark surface#182414
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 #2f9012

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#731290
Analogous left#6E9012
Analogous right#129034
Split-complement 1#341290
Split-complement 2#90126E
Triadic 1#122F90
Triadic 2#90122F
Tetradic#126E90

RGB percentages

Red18.4%
Green56.5%
Blue7.1%

CMYK percentages

Cyan67.4%
Magenta0.0%
Yellow87.5%
Key (black)43.5%

Color previews

#2f9012 text on a black background

contrast 5.12:1

Card sample

#2f9012 text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f9012

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.

#2f9012 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.

#2f9012, answered

What color is #2f9012?

#2f9012 is a dark electric green, closest to Forest Green (ΔE2000 3). It sits at 106° on the hue wheel with 78% saturation and 32% lightness, which reads as neutral.

What is the RGB value of #2f9012?

rgb(47, 144, 18) — 47 red, 144 green and 18 blue out of 255, or 18.4% / 56.5% / 7.1% by channel.

Is #2f9012 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2059 and perceived brightness is 44%, so black text on it reaches 5.12:1.

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

Black. It scores 5.12:1 against #2f9012, versus 4.10:1 for white — AA at any size.

What is the complementary color of #2f9012?

#731290 sits directly opposite on the wheel. Softer options are the split-complements #341290 and #90126E, which give the same contrast with far less vibration.

What colors go well with #2f9012?

For interface work: #F6FAF4 as the surface, #CAEDC0 for borders, #5D9B4B for secondary text, #540F93 as an accent and #25710E for hover and pressed states. For a palette, the analogous pair #6E9012 and #129034 stays calm, while #731290 is the loudest partner.

What is #2f9012 in CMYK for printing?

cmyk(67%, 0%, 88%, 44%). 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 #2f9012 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5D9012; nudged cooler, #109222.

Work with #2f9012 in the Color Lab