#5B8A31#5B8A31

#5B8A31 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.130 H 132.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5B8A31
RGBrgb(91, 138, 49)
HSLhsl(92, 48%, 37%)
HSVhsv(92, 64%, 54%)
CMYKcmyk(34.1%, 0%, 64.5%, 45.9%)
CIE-LABlab(52.53, -31.62, 41.42)
CIE-LCHlch(52.53, 52.11, 127.35°)
OKLaboklab(58.01% -0.0884 0.0957)
OKLCHoklch(58.01% 0.13 132.7)
XYZxyz(13.9570, 20.6223, 6.1503)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A31 #60318A
analogous
#888A31 #5B8A31 #318A33
triadic
#5B8A31 #315B8A #8A315B
tetradic
#5B8A31 #31888A #60318A #8A3331
square
#5B8A31 #31888A #60318A #8A3331
split-complementary
#5B8A31 #33318A #8A3188
monochromatic
#1F3011 #3D5D21 #5B8A31 #79B741 #98CA6B

Accessibility & contrast

On white

4.10
#5B8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5B8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A31
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A31#FFFFFF#000000##000000
##5B8A311.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908026
Deuteranopia (green-blind)
#897C38
Tritanopia (blue-blind)
#5C8577
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a31;
/* rgb */ color: rgb(91, 138, 49);
/* oklch */ color: oklch(58.0% 0.130 132.7);
Tailwind
colors: {
  custom: {
    50: '#8dac6d',
    500: '#5b8a31',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a31;
$custom-light: #8dac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a31",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 91.685,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58008,
    "c": 0.13026,
    "h": 132.7
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#5B8A31
secondary
#8E65B2
accent
#51D798
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5B8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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