#5B7E1F#5B7E1F

#5B7E1F is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.127 H 127.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5B7E1F
RGBrgb(91, 126, 31)
HSLhsl(82, 61%, 31%)
HSVhsv(82, 75%, 49%)
CMYKcmyk(27.8%, 0%, 75.4%, 50.6%)
CIE-LABlab(48.57, -27.31, 44.88)
CIE-LCHlch(48.57, 52.54, 121.32°)
OKLaboklab(54.74% -0.0782 0.1003)
OKLCHoklch(54.74% 0.127 127.9)
XYZxyz(12.0226, 17.2445, 3.9912)
Luminance0.1724 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E1F #421F7E
analogous
#7E711F #5B7E1F #2B7E1F
triadic
#5B7E1F #1F5B7E #7E1F5B
tetradic
#5B7E1F #1F7E71 #421F7E #7E1F2B
square
#5B7E1F #1F7E71 #421F7E #7E1F2B
split-complementary
#5B7E1F #1F2B7E #711F7E
monochromatic
#141C07 #384D13 #5B7E1F #7EAF2B #9ED146

Accessibility & contrast

On white

4.72
#5B7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5B7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E1F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E1F#FFFFFF#000000##FFFFFF
##5B7E1F1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#5E786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7e1f;
/* rgb */ color: rgb(91, 126, 31);
/* oklch */ color: oklch(54.7% 0.127 127.9);
Tailwind
colors: {
  custom: {
    50: '#8da362',
    500: '#5b7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e1f;
$custom-light: #8da362;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e1f",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 82.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.12722,
    "h": 127.9
  },
  "luminance": 0.17245
}

Semantic roles & 50–950 ramp

primary
#5B7E1F
secondary
#6F48B1
accent
#44E47F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5B7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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