Skip to content

#087f2f

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

RGB
8, 127, 47
HSL
140°, 88%, 27%
CMYK
94, 0, 63, 50
Luminance
0.1544

At a glance

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

Hex
#087f2f
Hue
140°
green
Saturation
88%
electric
Lightness
27%
dark
Brightness
50%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1544
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.14:1
Closest name
Green
ΔE2000 5.1
Where it sits
Hue140° of 360°
Saturation88%
Lightness27%
Temperature
Warm ← → Cool71% 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#087f2f
RGBrgb(8, 127, 47)
HSLhsl(140, 88%, 27%)
CMYKcmyk(94%, 0%, 63%, 50%)
LABlab(46.2 -47.3 34.5)
LCHlch(46.2 58.5 143.8)
OKLCHoklch(0.521 0.151 147.3)
Decimal556847
Display P3color(display-p3 0.031 0.498 0.184)

Copy-ready code

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

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#ffffff on #087f2f · 5.14:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.14:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.09:1
AA fail · AA large pass · AAA fail
Reading the other direction: #087f2f as text scores 5.14:1 on white and 4.09:1 on black.

Accessibility — WCAG contrast

Aa
#087f2f on white: 5.14:1
AA ✓ pass · AA-large · AAA
Aa
#087f2f on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #817326
deuteranopia · #756A36
tritanopia · #007C6E

Color scale — 50 to 950

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

#F2FDF6
#E5FAEC
#C4F8D5
#95F8B6
#61F591
#2CF26D
#0FE655
#0CC047
#0A9939
#087f2f
#07451C
Base = 900Lightest = 50 · #F2FDF6Darkest = 950 · #07451C
:root {
  --brand-50: #F2FDF6;
  --brand-100: #E5FAEC;
  --brand-200: #C4F8D5;
  --brand-300: #95F8B6;
  --brand-400: #61F591;
  --brand-500: #2CF26D;
  --brand-600: #0FE655;
  --brand-700: #0CC047;
  --brand-800: #0A9939;
  --brand-900: #087f2f;
  --brand-950: #07451C;
  --brand: #087f2f;
  --brand-ink: #ffffff;
}

Colors that work with #087f2f

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

Text on it#ffffff
White wins here
Surface#F4FAF6
Tinted page background
Border#C0EDCE
Hairlines and dividers
Muted text#4B9B65
Captions on the surface
Accent#820578
Second voice, not a rival
Dark variant#08782C
Hover, pressed, headers
Light variant#E7FDEE
Selected rows, tints
Dark surface#142419
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 #087f2f

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

Works well for
  • Body text and links on white
  • 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
  • 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#7F0858
Analogous left#1C7F08
Analogous right#087F6B
Split-complement 1#6B087F
Split-complement 2#7F081C
Triadic 1#2F087F
Triadic 2#7F2F08
Tetradic#081C7F

RGB percentages

Red3.1%
Green49.8%
Blue18.4%

CMYK percentages

Cyan93.7%
Magenta0.0%
Yellow63.0%
Key (black)50.2%

Color previews

#087f2f text on a black background

contrast 4.09:1

Card sample

#087f2f text on a white background

contrast 5.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #087f2f;
Background color
Panel with #087f2f background
background-color: #087f2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #087f2f

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.

#087f2f 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.

#087f2f, answered

What color is #087f2f?

#087f2f is a dark electric green, closest to Green (ΔE2000 5.1). It sits at 140° on the hue wheel with 88% saturation and 27% lightness, which reads as cool.

What is the RGB value of #087f2f?

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

Is #087f2f a light or a dark color?

It is a dark color. Relative luminance is 0.1544 and perceived brightness is 39%, so white text on it reaches 5.14:1.

Should I use black or white text on #087f2f?

White. It scores 5.14:1 against #087f2f, versus 4.09:1 for black — AA at any size.

What is the complementary color of #087f2f?

#7F0858 sits directly opposite on the wheel. Softer options are the split-complements #6B087F and #7F081C, which give the same contrast with far less vibration.

What colors go well with #087f2f?

For interface work: #F4FAF6 as the surface, #C0EDCE for borders, #4B9B65 for secondary text, #820578 as an accent and #08782C for hover and pressed states. For a palette, the analogous pair #1C7F08 and #087F6B stays calm, while #7F0858 is the loudest partner.

What is #087f2f in CMYK for printing?

cmyk(94%, 0%, 63%, 50%). 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 #087f2f warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0D7F08; nudged cooler, #07805B.

Work with #087f2f in the Color Lab