Skip to content

#12901f

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

RGB
18, 144, 31
HSL
126°, 78%, 32%
CMYK
88, 0, 79, 44
Luminance
0.2017

At a glance

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

Hex
#12901f
Hue
126°
green
Saturation
78%
electric
Lightness
32%
dark
Brightness
56%
HSV value
Perceived
44%
weighted brightness
Luminance
0.2017
WCAG relative
Temperature
Cool
65/100 cool
Color family
Green
Tone
Electric
Best ink
Black
5.03:1
Closest name
Forest Green
ΔE2000 1.8
Where it sits
Hue126° of 360°
Saturation78%
Lightness32%
Temperature
Warm ← → Cool65% cool

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

Every format

HEX#12901f
RGBrgb(18, 144, 31)
HSLhsl(126, 78%, 32%)
CMYKcmyk(88%, 0%, 79%, 44%)
LABlab(52.0 -53.6 47.5)
LCHlch(52.0 71.6 138.5)
OKLCHoklch(0.569 0.180 143.7)
Decimal1216543
Display P3color(display-p3 0.071 0.565 0.122)

Copy-ready code

/* CSS */
color: #12901f;
background-color: #12901f;
/* Tailwind (arbitrary) */
class="text-[#12901f] bg-[#12901f]"
/* SCSS */
$brand: #12901f;
/* SwiftUI */
Color(red: 0.071, green: 0.565, blue: 0.122)
/* Android */
Color.parseColor("#12901f")
/* Flutter */
Color(0xFF12901F)
/* Python / OpenCV (BGR) */
(31, 144, 18)

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 #12901f · 5.03:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.17:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.03:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #12901f as text scores 4.17:1 on white and 5.03:1 on black.

Accessibility — WCAG contrast

Aa
#12901f on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#12901f on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #938103
deuteranopia · #86792C
tritanopia · #008C7B

Color scale — 50 to 950

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

#F3FCF4
#E6F9E8
#C7F5CC
#9BF3A4
#69EC77
#38E64A
#1BDA2F
#17B527
#12901f
#11691A
#0B4211
Base = 800Lightest = 50 · #F3FCF4Darkest = 950 · #0B4211
:root {
  --brand-50: #F3FCF4;
  --brand-100: #E6F9E8;
  --brand-200: #C7F5CC;
  --brand-300: #9BF3A4;
  --brand-400: #69EC77;
  --brand-500: #38E64A;
  --brand-600: #1BDA2F;
  --brand-700: #17B527;
  --brand-800: #12901f;
  --brand-900: #11691A;
  --brand-950: #0B4211;
  --brand: #12901f;
  --brand-ink: #000000;
}

Colors that work with #12901f

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#F4FAF5
Tinted page background
Border#C0EDC4
Hairlines and dividers
Muted text#4B9B53
Captions on the surface
Accent#800F93
Second voice, not a rival
Dark variant#0E7118
Hover, pressed, headers
Light variant#E8FCEA
Selected rows, tints
Dark surface#142415
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 #12901f

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#901283
Analogous left#449012
Analogous right#12905E
Split-complement 1#5E1290
Split-complement 2#901244
Triadic 1#1F1290
Triadic 2#901F12
Tetradic#124490

RGB percentages

Red7.1%
Green56.5%
Blue12.2%

CMYK percentages

Cyan87.5%
Magenta0.0%
Yellow78.5%
Key (black)43.5%

Color previews

#12901f text on a black background

contrast 5.03:1

Card sample

#12901f text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #12901f

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.

#12901f 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.

#12901f, answered

What color is #12901f?

#12901f is a dark electric green, closest to Forest Green (ΔE2000 1.8). It sits at 126° on the hue wheel with 78% saturation and 32% lightness, which reads as cool.

What is the RGB value of #12901f?

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

Is #12901f a light or a dark color?

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

Should I use black or white text on #12901f?

Black. It scores 5.03:1 against #12901f, versus 4.17:1 for white — AA at any size.

What is the complementary color of #12901f?

#901283 sits directly opposite on the wheel. Softer options are the split-complements #5E1290 and #901244, which give the same contrast with far less vibration.

What colors go well with #12901f?

For interface work: #F4FAF5 as the surface, #C0EDC4 for borders, #4B9B53 for secondary text, #800F93 as an accent and #0E7118 for hover and pressed states. For a palette, the analogous pair #449012 and #12905E stays calm, while #901283 is the loudest partner.

What is #12901f in CMYK for printing?

cmyk(88%, 0%, 79%, 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 #12901f warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #339012; nudged cooler, #10924D.

Work with #12901f in the Color Lab