#5B9731#5B9731

#5B9731 is a mid, vivid yellow-green. Relative luminance 0.246; OKLCH L 61.4% C 0.148 H 134.8°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5B9731
RGBrgb(91, 151, 49)
HSLhsl(95, 51%, 39%)
HSVhsv(95, 68%, 59%)
CMYKcmyk(39.7%, 0%, 67.5%, 40.8%)
CIE-LABlab(56.66, -37.50, 45.89)
CIE-LCHlch(56.66, 59.26, 129.25°)
OKLaboklab(61.38% -0.1045 0.1051)
OKLCHoklch(61.38% 0.148 134.8)
XYZxyz(15.9350, 24.5783, 6.8096)
Luminance0.2458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9731 #6D3197
analogous
#8E9731 #5B9731 #31973A
triadic
#5B9731 #315B97 #97315B
tetradic
#5B9731 #318E97 #6D3197 #973A31
square
#5B9731 #318E97 #6D3197 #973A31
split-complementary
#5B9731 #3A3197 #97318E
monochromatic
#233B13 #3F6922 #5B9731 #77C243 #99D171

Accessibility & contrast

On white

3.55
#5B9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#5B9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9731
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9731#FFFFFF#000000##000000
##5B97311.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B23
Deuteranopia (green-blind)
#94863A
Tritanopia (blue-blind)
#5A9182
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b9731;
/* rgb */ color: rgb(91, 151, 49);
/* oklch */ color: oklch(61.4% 0.148 134.8);
Tailwind
colors: {
  custom: {
    50: '#8eb66e',
    500: '#5b9731',
    950: '#000000',
  },
}
SCSS
$custom: #5b9731;
$custom-light: #8eb66e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9731",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 95.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61376,
    "c": 0.1482,
    "h": 134.8
  },
  "luminance": 0.24579
}

Semantic roles & 50–950 ramp

primary
#5B9731
secondary
#996BB9
accent
#4DDAA0
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5B9731

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

Preview Lab → · Contrast checker → · Palette generator →

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