Skip to content

#17a42f

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

RGB
23, 164, 47
HSL
130°, 75%, 37%
CMYK
86, 0, 71, 36
Luminance
0.2694

At a glance

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

Hex
#17a42f
Hue
130°
green
Saturation
75%
electric
Lightness
37%
dark
Brightness
64%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2694
WCAG relative
Temperature
Cool
67/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.39:1
Closest name
Forest Green
ΔE2000 8.3
Where it sits
Hue130° of 360°
Saturation75%
Lightness37%
Temperature
Warm ← → Cool67% 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#17a42f
RGBrgb(23, 164, 47)
HSLhsl(130, 75%, 37%)
CMYKcmyk(86%, 0%, 71%, 36%)
LABlab(58.9 -58.0 48.5)
LCHlch(58.9 75.6 140.1)
OKLCHoklch(0.627 0.192 144.7)
Decimal1549359
Display P3color(display-p3 0.090 0.643 0.184)

Copy-ready code

/* CSS */
color: #17a42f;
background-color: #17a42f;
/* Tailwind (arbitrary) */
class="text-[#17a42f] bg-[#17a42f]"
/* SCSS */
$brand: #17a42f;
/* SwiftUI */
Color(red: 0.090, green: 0.643, blue: 0.184)
/* Android */
Color.parseColor("#17a42f")
/* Flutter */
Color(0xFF17A42F)
/* Python / OpenCV (BGR) */
(47, 164, 23)

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

Accessibility — WCAG contrast

Aa
#17a42f on white: 3.29:1
AA ✗ fail · AA-large · AAA
Aa
#17a42f on black: 6.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A7941D
deuteranopia · #988A3B
tritanopia · #009F8D

Color scale — 50 to 950

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

#F3FCF4
#E7F9EA
#C8F4CF
#9DF1AB
#6BEA81
#3AE357
#1ED73D
#17a42f
#148F29
#136821
#0C4115
Base = 700Lightest = 50 · #F3FCF4Darkest = 950 · #0C4115
:root {
  --brand-50: #F3FCF4;
  --brand-100: #E7F9EA;
  --brand-200: #C8F4CF;
  --brand-300: #9DF1AB;
  --brand-400: #6BEA81;
  --brand-500: #3AE357;
  --brand-600: #1ED73D;
  --brand-700: #17a42f;
  --brand-800: #148F29;
  --brand-900: #136821;
  --brand-950: #0C4115;
  --brand: #17a42f;
  --brand-ink: #000000;
}

Colors that work with #17a42f

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#C0EDC7
Hairlines and dividers
Muted text#4B9B58
Captions on the surface
Accent#9C13A8
Second voice, not a rival
Dark variant#107020
Hover, pressed, headers
Light variant#E9FCEC
Selected rows, tints
Dark surface#142416
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 #17a42f

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#A4178C
Analogous left#46A417
Analogous right#17A476
Split-complement 1#7617A4
Split-complement 2#A41746
Triadic 1#2F17A4
Triadic 2#A42F17
Tetradic#1746A4

RGB percentages

Red9.0%
Green64.3%
Blue18.4%

CMYK percentages

Cyan86.0%
Magenta0.0%
Yellow71.3%
Key (black)35.7%

Color previews

#17a42f text on a black background

contrast 6.39:1

Card sample

#17a42f text on a white background

contrast 3.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #17a42f;
Background color
Panel with #17a42f background
background-color: #17a42f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(23, 164, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 164, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #17a42f;
background: linear-gradient(135deg, #17a42f, #17A48D);

Monochromatic scale

Palettes built from #17a42f

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.

#17a42f 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.

#17a42f, answered

What color is #17a42f?

#17a42f is a dark electric green, closest to Forest Green (ΔE2000 8.3). It sits at 130° on the hue wheel with 75% saturation and 37% lightness, which reads as cool.

What is the RGB value of #17a42f?

rgb(23, 164, 47) — 23 red, 164 green and 47 blue out of 255, or 9% / 64.3% / 18.4% by channel.

Is #17a42f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2694 and perceived brightness is 50%, so black text on it reaches 6.39:1.

Should I use black or white text on #17a42f?

Black. It scores 6.39:1 against #17a42f, versus 3.29:1 for white — AA at any size.

What is the complementary color of #17a42f?

#A4178C sits directly opposite on the wheel. Softer options are the split-complements #7617A4 and #A41746, which give the same contrast with far less vibration.

What colors go well with #17a42f?

For interface work: #F4FAF5 as the surface, #C0EDC7 for borders, #4B9B58 for secondary text, #9C13A8 as an accent and #107020 for hover and pressed states. For a palette, the analogous pair #46A417 and #17A476 stays calm, while #A4178C is the loudest partner.

What is #17a42f in CMYK for printing?

cmyk(86%, 0%, 71%, 36%). 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 #17a42f warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #33A417; nudged cooler, #15A663.

Work with #17a42f in the Color Lab