Skip to content

#17511f

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

RGB
23, 81, 31
HSL
128°, 56%, 20%
CMYK
72, 0, 62, 68
Luminance
0.0617

At a glance

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

Hex
#17511f
Hue
128°
green
Saturation
56%
vivid
Lightness
20%
deep
Brightness
32%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0617
WCAG relative
Temperature
Cool
66/100 cool
Color family
Green
Tone
Vivid
Best ink
White
9.40:1
Closest name
Dark Green
ΔE2000 8.8
Where it sits
Hue128° of 360°
Saturation56%
Lightness20%
Temperature
Warm ← → Cool66% 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#17511f
RGBrgb(23, 81, 31)
HSLhsl(128, 56%, 20%)
CMYKcmyk(72%, 0%, 62%, 68%)
LABlab(29.8 -30.5 23.7)
LCHlch(29.8 38.6 142.1)
OKLCHoklch(0.385 0.100 145.6)
Decimal1528095
Display P3color(display-p3 0.090 0.318 0.122)

Copy-ready code

/* CSS */
color: #17511f;
background-color: #17511f;
/* Tailwind (arbitrary) */
class="text-[#17511f] bg-[#17511f]"
/* SCSS */
$brand: #17511f;
/* SwiftUI */
Color(red: 0.090, green: 0.318, blue: 0.122)
/* Android */
Color.parseColor("#17511f")
/* Flutter */
Color(0xFF17511F)
/* Python / OpenCV (BGR) */
(31, 81, 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 #17511f · 9.40:1
Use #ffffffAAA at every size.
Aa
White text · 9.40:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.23:1
AA fail · AA large fail · AAA fail
Reading the other direction: #17511f as text scores 9.40:1 on white and 2.23:1 on black.

Accessibility — WCAG contrast

Aa
#17511f on white: 9.40:1
AA ✓ pass · AA-large · AAA
Aa
#17511f on black: 2.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #52491A
deuteranopia · #4B4423
tritanopia · #074F46

Color scale — 50 to 950

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

#F4FBF5
#E9F6EB
#CEEED2
#A8E6B0
#7CDA89
#50CD62
#36BF49
#2D9F3D
#247F31
#17511f
#133A18
Base = 900Lightest = 50 · #F4FBF5Darkest = 950 · #133A18
:root {
  --brand-50: #F4FBF5;
  --brand-100: #E9F6EB;
  --brand-200: #CEEED2;
  --brand-300: #A8E6B0;
  --brand-400: #7CDA89;
  --brand-500: #50CD62;
  --brand-600: #36BF49;
  --brand-700: #2D9F3D;
  --brand-800: #247F31;
  --brand-900: #17511f;
  --brand-950: #133A18;
  --brand: #17511f;
  --brand-ink: #ffffff;
}

Colors that work with #17511f

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#F4FAF5
Tinted page background
Border#C0EDC6
Hairlines and dividers
Muted text#4B9B56
Captions on the surface
Accent#4C1553
Second voice, not a rival
Dark variant#1C6326
Hover, pressed, headers
Light variant#EBF9ED
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 #17511f

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#511749
Analogous left#2C5117
Analogous right#17513C
Split-complement 1#3C1751
Split-complement 2#51172C
Triadic 1#1F1751
Triadic 2#511F17
Tetradic#172C51

RGB percentages

Red9.0%
Green31.8%
Blue12.2%

CMYK percentages

Cyan71.6%
Magenta0.0%
Yellow61.7%
Key (black)68.2%

Color previews

#17511f text on a black background

contrast 2.23:1

Card sample

#17511f text on a white background

contrast 9.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #17511f

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.

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

#17511f, answered

What color is #17511f?

#17511f is a deep vivid green, closest to Dark Green (ΔE2000 8.8). It sits at 128° on the hue wheel with 56% saturation and 20% lightness, which reads as cool.

What is the RGB value of #17511f?

rgb(23, 81, 31) — 23 red, 81 green and 31 blue out of 255, or 9% / 31.8% / 12.2% by channel.

Is #17511f a light or a dark color?

It is a dark color. Relative luminance is 0.0617 and perceived brightness is 25%, so white text on it reaches 9.40:1.

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

White. It scores 9.40:1 against #17511f, versus 2.23:1 for black — AAA at any size.

What is the complementary color of #17511f?

#511749 sits directly opposite on the wheel. Softer options are the split-complements #3C1751 and #51172C, which give the same contrast with far less vibration.

What colors go well with #17511f?

For interface work: #F4FAF5 as the surface, #C0EDC6 for borders, #4B9B56 for secondary text, #4C1553 as an accent and #1C6326 for hover and pressed states. For a palette, the analogous pair #2C5117 and #17513C stays calm, while #511749 is the loudest partner.

What is #17511f in CMYK for printing?

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

Is #17511f warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #245117; nudged cooler, #165234.

Work with #17511f in the Color Lab