Skip to content

#017f2f

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

RGB
1, 127, 47
HSL
142°, 98%, 25%
CMYK
99, 0, 63, 50
Luminance
0.1539

At a glance

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

Hex
#017f2f
Hue
142°
green
Saturation
98%
electric
Lightness
25%
dark
Brightness
50%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1539
WCAG relative
Temperature
Cool
72/100 cool
Color family
Green
Tone
Electric
Best ink
White
5.15:1
Closest name
Green
ΔE2000 5.1
Where it sits
Hue142° of 360°
Saturation98%
Lightness25%
Temperature
Warm ← → Cool72% 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#017f2f
RGBrgb(1, 127, 47)
HSLhsl(142, 98%, 25%)
CMYKcmyk(99%, 0%, 63%, 50%)
LABlab(46.2 -47.8 34.5)
LCHlch(46.2 58.9 144.2)
OKLCHoklch(0.520 0.152 147.6)
Decimal98095
Display P3color(display-p3 0.004 0.498 0.184)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#017f2f on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#017f2f on black: 4.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #807226
deuteranopia · #756A36
tritanopia · #007C6E

Color scale — 50 to 950

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

#F1FEF6
#E3FCEC
#C1FBD6
#90FEB8
#58FE94
#20FD71
#02F35A
#02CA4B
#01A23C
#017f2f
#04491D
Base = 900Lightest = 50 · #F1FEF6Darkest = 950 · #04491D
:root {
  --brand-50: #F1FEF6;
  --brand-100: #E3FCEC;
  --brand-200: #C1FBD6;
  --brand-300: #90FEB8;
  --brand-400: #58FE94;
  --brand-500: #20FD71;
  --brand-600: #02F35A;
  --brand-700: #02CA4B;
  --brand-800: #01A23C;
  --brand-900: #017f2f;
  --brand-950: #04491D;
  --brand: #017f2f;
  --brand-ink: #ffffff;
}

Colors that work with #017f2f

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#F4FAF7
Tinted page background
Border#C0EDD0
Hairlines and dividers
Muted text#4B9B68
Captions on the surface
Accent#800071
Second voice, not a rival
Dark variant#017E2F
Hover, pressed, headers
Light variant#E6FFEF
Selected rows, tints
Dark surface#14241A
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 #017f2f

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#7F0151
Analogous left#127F01
Analogous right#017F6E
Split-complement 1#6E017F
Split-complement 2#7F0112
Triadic 1#2F017F
Triadic 2#7F2F01
Tetradic#01127F

RGB percentages

Red0.4%
Green49.8%
Blue18.4%

CMYK percentages

Cyan99.2%
Magenta0.0%
Yellow63.0%
Key (black)50.2%

Color previews

#017f2f text on a black background

contrast 4.08:1

Card sample

#017f2f text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #017f2f

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.

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

#017f2f, answered

What color is #017f2f?

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

What is the RGB value of #017f2f?

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

Is #017f2f a light or a dark color?

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

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

White. It scores 5.15:1 against #017f2f, versus 4.08:1 for black — AA at any size.

What is the complementary color of #017f2f?

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

What colors go well with #017f2f?

For interface work: #F4FAF7 as the surface, #C0EDD0 for borders, #4B9B68 for secondary text, #800071 as an accent and #017E2F for hover and pressed states. For a palette, the analogous pair #127F01 and #017F6E stays calm, while #7F0151 is the loudest partner.

What is #017f2f in CMYK for printing?

cmyk(99%, 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 #017f2f warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #017F01; nudged cooler, #00805E.

Work with #017f2f in the Color Lab