#5B7D1A#5B7D1A

#5B7D1A is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.129 H 127.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D1A
RGBrgb(91, 125, 26)
HSLhsl(81, 66%, 30%)
HSVhsv(81, 79%, 49%)
CMYKcmyk(27.2%, 0%, 79.2%, 51%)
CIE-LABlab(48.22, -27.12, 46.36)
CIE-LCHlch(48.22, 53.71, 120.33°)
OKLaboklab(54.44% -0.0781 0.1026)
OKLCHoklch(54.44% 0.129 127.3)
XYZxyz(11.8345, 16.9657, 3.6283)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D1A #3C1A7D
analogous
#7D6E1A #5B7D1A #2A7D1A
triadic
#5B7D1A #1A5B7D #7D1A5B
tetradic
#5B7D1A #1A7D6E #3C1A7D #7D1A2A
square
#5B7D1A #1A7D6E #3C1A7D #7D1A2A
split-complementary
#5B7D1A #1A2A7D #6E1A7D
monochromatic
#121905 #364A0F #5B7D1A #80B025 #A1D63B

Accessibility & contrast

On white

4.78
#5B7D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5B7D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D1A
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D1A#FFFFFF#000000##FFFFFF
##5B7D1A1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847402
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d1a;
/* rgb */ color: rgb(91, 125, 26);
/* oklch */ color: oklch(54.4% 0.129 127.3);
Tailwind
colors: {
  custom: {
    50: '#8da25f',
    500: '#5b7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d1a;
$custom-light: #8da25f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d1a",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 80.606,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54442,
    "c": 0.12893,
    "h": 127.3
  },
  "luminance": 0.16966
}

Semantic roles & 50–950 ramp

primary
#5B7D1A
secondary
#6842B1
accent
#3FE979
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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