#5B9D31#5B9D31

#5B9D31 is a light, vivid yellow-green. Relative luminance 0.266; OKLCH L 62.9% C 0.156 H 135.6°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5B9D31
RGBrgb(91, 157, 49)
HSLhsl(97, 52%, 40%)
HSVhsv(97, 69%, 62%)
CMYKcmyk(42%, 0%, 68.8%, 38.4%)
CIE-LABlab(58.56, -40.10, 47.91)
CIE-LCHlch(58.56, 62.47, 129.93°)
OKLaboklab(62.93% -0.1115 0.1093)
OKLCHoklch(62.93% 0.156 135.6)
XYZxyz(16.9253, 26.5589, 7.1397)
Luminance0.2656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9D31 #73319D
analogous
#919D31 #5B9D31 #319D3D
triadic
#5B9D31 #315B9D #9D315B
tetradic
#5B9D31 #31919D #73319D #9D3D31
square
#5B9D31 #31919D #73319D #9D3D31
split-complementary
#5B9D31 #3D319D #9D3191
monochromatic
#254014 #406E22 #5B9D31 #77C546 #9AD475

Accessibility & contrast

On white

3.33
#5B9D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#5B9D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9D31
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9D31#FFFFFF#000000##000000
##5B9D311.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39022
Deuteranopia (green-blind)
#9A8B3A
Tritanopia (blue-blind)
#599787
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5b9d31;
/* rgb */ color: rgb(91, 157, 49);
/* oklch */ color: oklch(62.9% 0.156 135.6);
Tailwind
colors: {
  custom: {
    50: '#8fba6f',
    500: '#5b9d31',
    950: '#000000',
  },
}
SCSS
$custom: #5b9d31;
$custom-light: #8fba6f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9d31",
  "rgb": {
    "r": 91,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 96.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.62932,
    "c": 0.1562,
    "h": 135.6
  },
  "luminance": 0.2656
}

Semantic roles & 50–950 ramp

primary
#5B9D31
secondary
#9E6EBC
accent
#4CDCA4
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1208
muted
#7E817B

Preview Lab

Preview with #5B9D31

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

Preview Lab → · Contrast checker → · Palette generator →

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