#5B7D1E#5B7D1E

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

Color values

HEX#5B7D1E
RGBrgb(91, 125, 30)
HSLhsl(81, 61%, 30%)
HSVhsv(81, 76%, 49%)
CMYKcmyk(27.2%, 0%, 76%, 51%)
CIE-LABlab(48.24, -26.89, 44.94)
CIE-LCHlch(48.24, 52.37, 120.89°)
OKLaboklab(54.47% -0.0771 0.1003)
OKLCHoklch(54.47% 0.127 127.6)
XYZxyz(11.8824, 16.9849, 3.8804)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D1E #401E7D
analogous
#7D6F1E #5B7D1E #2B7D1E
triadic
#5B7D1E #1E5B7D #7D1E5B
tetradic
#5B7D1E #1E7D6F #401E7D #7D1E2B
square
#5B7D1E #1E7D6F #401E7D #7D1E2B
split-complementary
#5B7D1E #1E2B7D #6F1E7D
monochromatic
#131A06 #374C12 #5B7D1E #7FAE2A #9FD243

Accessibility & contrast

On white

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

On black

4.40
#5B7D1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B7D1E#FFFFFF#000000##FFFFFF
##5B7D1E1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740B
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#5F776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7d1e;
/* rgb */ color: rgb(91, 125, 30);
/* oklch */ color: oklch(54.5% 0.127 127.6);
Tailwind
colors: {
  custom: {
    50: '#8da261',
    500: '#5b7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d1e;
$custom-light: #8da261;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d1e",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 81.474,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54469,
    "c": 0.12653,
    "h": 127.6
  },
  "luminance": 0.16985
}

Semantic roles & 50–950 ramp

primary
#5B7D1E
secondary
#6C46B0
accent
#43E47D
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5B7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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