#5B7840#5B7840

#5B7840 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.6% C 0.088 H 131.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5B7840
RGBrgb(91, 120, 64)
HSLhsl(91, 30%, 36%)
HSVhsv(91, 47%, 47%)
CMYKcmyk(24.2%, 0%, 46.7%, 52.9%)
CIE-LABlab(47.01, -21.07, 27.34)
CIE-LCHlch(47.01, 34.52, 127.62°)
OKLaboklab(53.59% -0.0581 0.0663)
OKLCHoklch(53.59% 0.088 131.2)
XYZxyz(11.9561, 16.0270, 7.3131)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7840 #5D4078
analogous
#777840 #5B7840 #407841
triadic
#5B7840 #405B78 #78405B
tetradic
#5B7840 #407778 #5D4078 #784140
square
#5B7840 #407778 #5D4078 #784140
split-complementary
#5B7840 #414078 #784077
monochromatic
#1E2815 #3D502B #5B7840 #79A055 #98B87A

Accessibility & contrast

On white

4.99
#5B7840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B7840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7840
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7840#FFFFFF#000000##FFFFFF
##5B78401.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713C
Deuteranopia (green-blind)
#786F43
Tritanopia (blue-blind)
#5C746B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7840;
/* rgb */ color: rgb(91, 120, 64);
/* oklch */ color: oklch(53.6% 0.088 131.2);
Tailwind
colors: {
  custom: {
    50: '#8b9f76',
    500: '#5b7840',
    950: '#000000',
  },
}
SCSS
$custom: #5b7840;
$custom-light: #8b9f76;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7840",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 91.071,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.08818,
    "h": 131.2
  },
  "luminance": 0.16027
}

Semantic roles & 50–950 ramp

primary
#5B7840
secondary
#8B71A3
accent
#61C796
background
#F8F9F7
surface
#F0F2ED
border
#CBCCC8
text
#0C0E08
muted
#7D7E7B

Preview Lab

Preview with #5B7840

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5B7840 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva