Skip to content

#5b7d13

a dark, vivid green · warm · closest name: Olive Drab

RGB
91, 125, 19
HSL
79°, 74%, 28%
CMYK
27, 0, 85, 51
Luminance
0.1694

At a glance

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

Hex
#5b7d13
Hue
79°
green
Saturation
74%
vivid
Lightness
28%
dark
Brightness
49%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1694
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Vivid
Best ink
White
4.79:1
Closest name
Olive Drab
ΔE2000 6.4
Where it sits
Hue79° of 360°
Saturation74%
Lightness28%
Temperature
Warm ← → Cool41% cool

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

Every format

HEX#5b7d13
RGBrgb(91, 125, 19)
HSLhsl(79, 74%, 28%)
CMYKcmyk(27%, 0%, 85%, 51%)
LABlab(48.2 -27.5 48.5)
LCHlch(48.2 55.8 119.5)
OKLCHoklch(0.544 0.133 126.9)
Decimal5995795
Display P3color(display-p3 0.357 0.490 0.075)

Copy-ready code

/* CSS */
color: #5b7d13;
background-color: #5b7d13;
/* Tailwind (arbitrary) */
class="text-[#5b7d13] bg-[#5b7d13]"
/* SCSS */
$brand: #5b7d13;
/* SwiftUI */
Color(red: 0.357, green: 0.490, blue: 0.075)
/* Android */
Color.parseColor("#5b7d13")
/* Flutter */
Color(0xFF5B7D13)
/* Python / OpenCV (BGR) */
(19, 125, 91)

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

Accessibility — WCAG contrast

Aa
#5b7d13 on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#5b7d13 on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #847400
deuteranopia · #7F721F
tritanopia · #5F776A

Color scale — 50 to 950

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

#F9FCF3
#F3F8E7
#E6F3C8
#D6F09E
#C1E96D
#ADE13C
#9BD420
#81B11B
#5b7d13
#4C6714
#30400C
Base = 800Lightest = 50 · #F9FCF3Darkest = 950 · #30400C
:root {
  --brand-50: #F9FCF3;
  --brand-100: #F3F8E7;
  --brand-200: #E6F3C8;
  --brand-300: #D6F09E;
  --brand-400: #C1E96D;
  --brand-500: #ADE13C;
  --brand-600: #9BD420;
  --brand-700: #81B11B;
  --brand-800: #5b7d13;
  --brand-900: #4C6714;
  --brand-950: #30400C;
  --brand: #5b7d13;
  --brand-ink: #ffffff;
}

Colors that work with #5b7d13

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#F8FAF4
Tinted page background
Border#DEEDC0
Hairlines and dividers
Muted text#819B4B
Captions on the surface
Accent#181080
Second voice, not a rival
Dark variant#516F11
Hover, pressed, headers
Light variant#F6FCE9
Selected rows, tints
Dark surface#1F2414
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 #5b7d13

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#35137D
Analogous left#7D6A13
Analogous right#267D13
Split-complement 1#13267D
Split-complement 2#6A137D
Triadic 1#135B7D
Triadic 2#7D135B
Tetradic#137D6A

RGB percentages

Red35.7%
Green49.0%
Blue7.5%

CMYK percentages

Cyan27.2%
Magenta0.0%
Yellow84.8%
Key (black)51.0%

Color previews

#5b7d13 text on a black background

contrast 4.39:1

Card sample

#5b7d13 text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 125, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 125, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b7d13;
background: linear-gradient(135deg, #5b7d13, #147D13);

Monochromatic scale

Palettes built from #5b7d13

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.

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

#5b7d13, answered

What color is #5b7d13?

#5b7d13 is a dark vivid green, closest to Olive Drab (ΔE2000 6.4). It sits at 79° on the hue wheel with 74% saturation and 28% lightness, which reads as warm.

What is the RGB value of #5b7d13?

rgb(91, 125, 19) — 91 red, 125 green and 19 blue out of 255, or 35.7% / 49% / 7.5% by channel.

Is #5b7d13 a light or a dark color?

It is a dark color. Relative luminance is 0.1694 and perceived brightness is 42%, so white text on it reaches 4.79:1.

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

White. It scores 4.79:1 against #5b7d13, versus 4.39:1 for black — AA at any size.

What is the complementary color of #5b7d13?

#35137D sits directly opposite on the wheel. Softer options are the split-complements #13267D and #6A137D, which give the same contrast with far less vibration.

What colors go well with #5b7d13?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #819B4B for secondary text, #181080 as an accent and #516F11 for hover and pressed states. For a palette, the analogous pair #7D6A13 and #267D13 stays calm, while #35137D is the loudest partner.

What is #5b7d13 in CMYK for printing?

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

Is #5b7d13 warm or cool?

Warm — it scores 41 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7D7813; nudged cooler, #347E12.

Work with #5b7d13 in the Color Lab