#5B8B1F#5B8B1F

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

Color values

HEX#5B8B1F
RGBrgb(91, 139, 31)
HSLhsl(87, 64%, 33%)
HSVhsv(87, 78%, 55%)
CMYKcmyk(34.5%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.72, -33.43, 48.91)
CIE-LCHlch(52.72, 59.25, 124.35°)
OKLaboklab(58.11% -0.0948 0.1088)
OKLCHoklch(58.11% 0.144 131.1)
XYZxyz(13.7942, 20.7878, 4.5817)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8B1F #4F1F8B
analogous
#8B851F #5B8B1F #258B1F
triadic
#5B8B1F #1F5B8B #8B1F5B
tetradic
#5B8B1F #1F8B85 #4F1F8B #8B1F25
square
#5B8B1F #1F8B85 #4F1F8B #8B1F25
split-complementary
#5B8B1F #1F258B #851F8B
monochromatic
#192709 #3A5914 #5B8B1F #7CBD2A #9AD74D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8B1F#FFFFFF#000000##000000
##5B8B1F1.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)
#918005
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#5D8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8b1f;
/* rgb */ color: rgb(91, 139, 31);
/* oklch */ color: oklch(58.1% 0.144 131.1);
Tailwind
colors: {
  custom: {
    50: '#8ead63',
    500: '#5b8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b8b1f;
$custom-light: #8ead63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8b1f",
  "rgb": {
    "r": 91,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 86.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58114,
    "c": 0.14432,
    "h": 131.1
  },
  "luminance": 0.20788
}

Semantic roles & 50–950 ramp

primary
#5B8B1F
secondary
#7D4CBA
accent
#41E78B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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