#5B8A42#5B8A42

#5B8A42 is a mid, moderate yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.114 H 135.8°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5B8A42
RGBrgb(91, 138, 66)
HSLhsl(99, 35%, 40%)
HSVhsv(99, 52%, 54%)
CMYKcmyk(34.1%, 0%, 52.2%, 45.9%)
CIE-LABlab(52.72, -29.76, 33.32)
CIE-LCHlch(52.72, 44.67, 131.77°)
OKLaboklab(58.22% -0.082 0.0798)
OKLCHoklch(58.22% 0.114 135.8)
XYZxyz(14.3859, 20.7939, 8.4088)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A42 #71428A
analogous
#7F8A42 #5B8A42 #428A4D
triadic
#5B8A42 #425B8A #8A425B
tetradic
#5B8A42 #427F8A #71428A #8A4D42
square
#5B8A42 #427F8A #71428A #8A4D42
split-complementary
#5B8A42 #4D428A #8A427F
monochromatic
#24371A #40612E #5B8A42 #77B059 #99C483

Accessibility & contrast

On white

4.07
#5B8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5B8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A42
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A42#FFFFFF#000000##000000
##5B8A421.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803C
Deuteranopia (green-blind)
#887C47
Tritanopia (blue-blind)
#5A8579
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8a42;
/* rgb */ color: rgb(91, 138, 66);
/* oklch */ color: oklch(58.2% 0.114 135.8);
Tailwind
colors: {
  custom: {
    50: '#8cac78',
    500: '#5b8a42',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a42;
$custom-light: #8cac78;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a42",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 99.167,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.11443,
    "h": 135.8
  },
  "luminance": 0.20794
}

Semantic roles & 50–950 ramp

primary
#5B8A42
secondary
#9C79AE
accent
#5CCBA5
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1009
muted
#7D7F7B

Preview Lab

Preview with #5B8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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