Skip to content

#175a2f

a deep, vivid green · cool · closest name: Dark Green

RGB
23, 90, 47
HSL
142°, 59%, 22%
CMYK
74, 0, 48, 65
Luminance
0.0770

At a glance

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

Hex
#175a2f
Hue
142°
green
Saturation
59%
vivid
Lightness
22%
deep
Brightness
35%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0770
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Vivid
Best ink
White
8.27:1
Closest name
Dark Green
ΔE2000 9.4
Where it sits
Hue142° of 360°
Saturation59%
Lightness22%
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#175a2f
RGBrgb(23, 90, 47)
HSLhsl(142, 59%, 22%)
CMYKcmyk(74%, 0%, 48%, 65%)
LABlab(33.4 -31.5 18.9)
LCHlch(33.4 36.8 149.0)
OKLCHoklch(0.415 0.097 151.2)
Decimal1530415
Display P3color(display-p3 0.090 0.353 0.184)

Copy-ready code

/* CSS */
color: #175a2f;
background-color: #175a2f;
/* Tailwind (arbitrary) */
class="text-[#175a2f] bg-[#175a2f]"
/* SCSS */
$brand: #175a2f;
/* SwiftUI */
Color(red: 0.090, green: 0.353, blue: 0.184)
/* Android */
Color.parseColor("#175a2f")
/* Flutter */
Color(0xFF175A2F)
/* Python / OpenCV (BGR) */
(47, 90, 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#ffffff on #175a2f · 8.27:1
Use #ffffffAAA at every size.
Aa
White text · 8.27:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.54:1
AA fail · AA large fail · AAA fail
Reading the other direction: #175a2f as text scores 8.27:1 on white and 2.54:1 on black.

Accessibility — WCAG contrast

Aa
#175a2f on white: 8.27:1
AA ✓ pass · AA-large · AAA
Aa
#175a2f on black: 2.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5A522C
deuteranopia · #524C32
tritanopia · #005850

Color scale — 50 to 950

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

#F4FBF6
#E9F7EE
#CDEFD9
#A6E8BD
#79DD9D
#4CD17C
#32C366
#2AA255
#218244
#175a2f
#113B20
Base = 900Lightest = 50 · #F4FBF6Darkest = 950 · #113B20
:root {
  --brand-50: #F4FBF6;
  --brand-100: #E9F7EE;
  --brand-200: #CDEFD9;
  --brand-300: #A6E8BD;
  --brand-400: #79DD9D;
  --brand-500: #4CD17C;
  --brand-600: #32C366;
  --brand-700: #2AA255;
  --brand-800: #218244;
  --brand-900: #175a2f;
  --brand-950: #113B20;
  --brand: #175a2f;
  --brand-ink: #ffffff;
}

Colors that work with #175a2f

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#C0EDD0
Hairlines and dividers
Muted text#4B9B67
Captions on the surface
Accent#5C1555
Second voice, not a rival
Dark variant#1A6635
Hover, pressed, headers
Light variant#EBFAF0
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 #175a2f

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
  • Text on black or near-black surfaces
  • 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#5A1742
Analogous left#215A17
Analogous right#175A51
Split-complement 1#51175A
Split-complement 2#5A1721
Triadic 1#2F175A
Triadic 2#5A2F17
Tetradic#17215A

RGB percentages

Red9.0%
Green35.3%
Blue18.4%

CMYK percentages

Cyan74.4%
Magenta0.0%
Yellow47.8%
Key (black)64.7%

Color previews

#175a2f text on a black background

contrast 2.54:1

Card sample

#175a2f text on a white background

contrast 8.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #175a2f;
Background color
Panel with #175a2f background
background-color: #175a2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(23, 90, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 90, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #175a2f;
background: linear-gradient(135deg, #175a2f, #17595A);

Monochromatic scale

Palettes built from #175a2f

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.

#175a2f 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

Converts to four-color process without much drama. Proof it anyway.

#175a2f, answered

What color is #175a2f?

#175a2f is a deep vivid green, closest to Dark Green (ΔE2000 9.4). It sits at 142° on the hue wheel with 59% saturation and 22% lightness, which reads as cool.

What is the RGB value of #175a2f?

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

Is #175a2f a light or a dark color?

It is a dark color. Relative luminance is 0.0770 and perceived brightness is 28%, so white text on it reaches 8.27:1.

Should I use black or white text on #175a2f?

White. It scores 8.27:1 against #175a2f, versus 2.54:1 for black — AAA at any size.

What is the complementary color of #175a2f?

#5A1742 sits directly opposite on the wheel. Softer options are the split-complements #51175A and #5A1721, which give the same contrast with far less vibration.

What colors go well with #175a2f?

For interface work: #F4FAF6 as the surface, #C0EDD0 for borders, #4B9B67 for secondary text, #5C1555 as an accent and #1A6635 for hover and pressed states. For a palette, the analogous pair #215A17 and #175A51 stays calm, while #5A1742 is the loudest partner.

What is #175a2f in CMYK for printing?

cmyk(74%, 0%, 48%, 65%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #175a2f 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 #185A17; nudged cooler, #165B48.

Work with #175a2f in the Color Lab