Skip to content

#5f7253

a dark, soft green · neutral · closest name: Dark Olive Green

RGB
95, 114, 83
HSL
97°, 16%, 39%
CMYK
17, 0, 27, 55
Luminance
0.1509

At a glance

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

Hex
#5f7253
Hue
97°
green
Saturation
16%
soft
Lightness
39%
dark
Brightness
45%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1509
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Green
Tone
Soft
Best ink
White
5.23:1
Closest name
Dark Olive Green
ΔE2000 8.4
Where it sits
Hue97° of 360°
Saturation16%
Lightness39%
Temperature
Warm ← → Cool51% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#5f7253
RGBrgb(95, 114, 83)
HSLhsl(97, 16%, 39%)
CMYKcmyk(17%, 0%, 27%, 55%)
LABlab(45.8 -13.3 14.9)
LCHlch(45.8 20.0 131.8)
OKLCHoklch(0.528 0.052 133.6)
Decimal6255187
Display P3color(display-p3 0.373 0.447 0.325)

Copy-ready code

/* CSS */
color: #5f7253;
background-color: #5f7253;
/* Tailwind (arbitrary) */
class="text-[#5f7253] bg-[#5f7253]"
/* SCSS */
$brand: #5f7253;
/* SwiftUI */
Color(red: 0.373, green: 0.447, blue: 0.325)
/* Android */
Color.parseColor("#5f7253")
/* Flutter */
Color(0xFF5F7253)
/* Python / OpenCV (BGR) */
(83, 114, 95)

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

Accessibility — WCAG contrast

Aa
#5f7253 on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#5f7253 on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #756D51
deuteranopia · #726C54
tritanopia · #5F6F6A

Color scale — 50 to 950

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

#F7F8F6
#EFF2EE
#DDE2D9
#C5D0BE
#A8B89E
#8BA07D
#768E67
#5f7253
#4F5E45
#3B4634
#252C21
Base = 700Lightest = 50 · #F7F8F6Darkest = 950 · #252C21
:root {
  --brand-50: #F7F8F6;
  --brand-100: #EFF2EE;
  --brand-200: #DDE2D9;
  --brand-300: #C5D0BE;
  --brand-400: #A8B89E;
  --brand-500: #8BA07D;
  --brand-600: #768E67;
  --brand-700: #5f7253;
  --brand-800: #4F5E45;
  --brand-900: #3B4634;
  --brand-950: #252C21;
  --brand: #5f7253;
  --brand-ink: #ffffff;
}

Colors that work with #5f7253

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#F7F9F6
Tinted page background
Border#D5DDD0
Hairlines and dividers
Muted text#6F8561
Captions on the surface
Accent#5D4F76
Second voice, not a rival
Dark variant#3D4A36
Hover, pressed, headers
Light variant#F2F4F0
Selected rows, tints
Dark surface#1B2018
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 #5f7253

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#665372
Analogous left#6E7253
Analogous right#537256
Split-complement 1#565372
Split-complement 2#72536E
Triadic 1#535F72
Triadic 2#72535F
Tetradic#536E72

RGB percentages

Red37.3%
Green44.7%
Blue32.5%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow27.2%
Key (black)55.3%

Color previews

#5f7253 text on a black background

contrast 4.02:1

Card sample

#5f7253 text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f7253;
Background color
Panel with #5f7253 background
background-color: #5f7253;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5f7253;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(95, 114, 83, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 114, 83, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f7253;
background: linear-gradient(135deg, #5f7253, #53725C);

Monochromatic scale

Palettes built from #5f7253

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.

#5f7253 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.

#5f7253, answered

What color is #5f7253?

#5f7253 is a dark soft green, closest to Dark Olive Green (ΔE2000 8.4). It sits at 97° on the hue wheel with 16% saturation and 39% lightness, which reads as neutral.

What is the RGB value of #5f7253?

rgb(95, 114, 83) — 95 red, 114 green and 83 blue out of 255, or 37.3% / 44.7% / 32.5% by channel.

Is #5f7253 a light or a dark color?

It is a dark color. Relative luminance is 0.1509 and perceived brightness is 41%, so white text on it reaches 5.23:1.

Should I use black or white text on #5f7253?

White. It scores 5.23:1 against #5f7253, versus 4.02:1 for black — AA at any size.

What is the complementary color of #5f7253?

#665372 sits directly opposite on the wheel. Softer options are the split-complements #565372 and #72536E, which give the same contrast with far less vibration.

What colors go well with #5f7253?

For interface work: #F7F9F6 as the surface, #D5DDD0 for borders, #6F8561 for secondary text, #5D4F76 as an accent and #3D4A36 for hover and pressed states. For a palette, the analogous pair #6E7253 and #537256 stays calm, while #665372 is the loudest partner.

What is #5f7253 in CMYK for printing?

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

Is #5f7253 warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6A7253; nudged cooler, #527451.

Work with #5f7253 in the Color Lab