#5B8B1D#5B8B1D

#5B8B1D is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.1% C 0.145 H 130.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5B8B1D
RGBrgb(91, 139, 29)
HSLhsl(86, 65%, 33%)
HSVhsv(86, 79%, 55%)
CMYKcmyk(34.5%, 0%, 79.1%, 45.5%)
CIE-LABlab(52.71, -33.55, 49.58)
CIE-LCHlch(52.71, 59.86, 124.08°)
OKLaboklab(58.1% -0.0953 0.1099)
OKLCHoklch(58.1% 0.145 130.9)
XYZxyz(13.7687, 20.7776, 4.4472)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8B1D #4D1D8B
analogous
#8B841D #5B8B1D #248B1D
triadic
#5B8B1D #1D5B8B #8B1D5B
tetradic
#5B8B1D #1D8B84 #4D1D8B #8B1D24
square
#5B8B1D #1D8B84 #4D1D8B #8B1D24
split-complementary
#5B8B1D #1D248B #841D8B
monochromatic
#192608 #3A5812 #5B8B1D #7CBE28 #9AD949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8B1D#FFFFFF#000000##000000
##5B8B1D1.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)
#918000
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#5D8576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8b1d;
/* rgb */ color: rgb(91, 139, 29);
/* oklch */ color: oklch(58.1% 0.145 130.9);
Tailwind
colors: {
  custom: {
    50: '#8ead63',
    500: '#5b8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #5b8b1d;
$custom-light: #8ead63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8b1d",
  "rgb": {
    "r": 91,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 86.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58101,
    "c": 0.14543,
    "h": 130.9
  },
  "luminance": 0.20778
}

Semantic roles & 50–950 ramp

primary
#5B8B1D
secondary
#7B49BB
accent
#3FE889
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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