#5B7B1A#5B7B1A

#5B7B1A is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.9% C 0.126 H 126.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5B7B1A
RGBrgb(91, 123, 26)
HSLhsl(80, 65%, 29%)
HSVhsv(80, 79%, 48%)
CMYKcmyk(26%, 0%, 78.9%, 51.8%)
CIE-LABlab(47.58, -26.14, 45.76)
CIE-LCHlch(47.58, 52.70, 119.74°)
OKLaboklab(53.92% -0.0754 0.1013)
OKLCHoklch(53.92% 0.126 126.7)
XYZxyz(11.5838, 16.4644, 3.5447)
Luminance0.1646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7B1A #3A1A7B
analogous
#7B6B1A #5B7B1A #2A7B1A
triadic
#5B7B1A #1A5B7B #7B1A5B
tetradic
#5B7B1A #1A7B6B #3A1A7B #7B1A2A
square
#5B7B1A #1A7B6B #3A1A7B #7B1A2A
split-complementary
#5B7B1A #1A2A7B #6B1A7B
monochromatic
#131905 #36480F #5B7B1A #80AE25 #A2D53A

Accessibility & contrast

On white

4.89
#5B7B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5B7B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7B1A
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7B1A#FFFFFF#000000##FFFFFF
##5B7B1A1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827203
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#5F7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b7b1a;
/* rgb */ color: rgb(91, 123, 26);
/* oklch */ color: oklch(53.9% 0.126 126.7);
Tailwind
colors: {
  custom: {
    50: '#8da15f',
    500: '#5b7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #5b7b1a;
$custom-light: #8da15f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7b1a",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 79.794,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53924,
    "c": 0.12633,
    "h": 126.7
  },
  "luminance": 0.16465
}

Semantic roles & 50–950 ramp

primary
#5B7B1A
secondary
#6642AF
accent
#40E877
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5B7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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