#5B771F#5B771F

#5B771F is a mid, moderate yellow-green. Relative luminance 0.155; OKLCH L 52.9% C 0.118 H 125.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5B771F
RGBrgb(91, 119, 31)
HSLhsl(79, 59%, 29%)
HSVhsv(79, 74%, 47%)
CMYKcmyk(23.5%, 0%, 73.9%, 53.3%)
CIE-LABlab(46.33, -23.85, 42.67)
CIE-LCHlch(46.33, 48.89, 119.20°)
OKLaboklab(52.93% -0.0687 0.0957)
OKLCHoklch(52.93% 0.118 125.7)
XYZxyz(11.1586, 15.5166, 3.7032)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B771F #3B1F77
analogous
#77671F #5B771F #2F771F
triadic
#5B771F #1F5B77 #771F5B
tetradic
#5B771F #1F7767 #3B1F77 #771F2F
square
#5B771F #1F7767 #3B1F77 #771F2F
split-complementary
#5B771F #1F2F77 #671F77
monochromatic
#131806 #364612 #5B771F #80A82C #A2CE43

Accessibility & contrast

On white

5.12
#5B771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B771F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B771F#FFFFFF#000000##FFFFFF
##5B771F1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#7A6D27
Tritanopia (blue-blind)
#5F7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b771f;
/* rgb */ color: rgb(91, 119, 31);
/* oklch */ color: oklch(52.9% 0.118 125.7);
Tailwind
colors: {
  custom: {
    50: '#8c9e61',
    500: '#5b771f',
    950: '#000000',
  },
}
SCSS
$custom: #5b771f;
$custom-light: #8c9e61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b771f",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 79.091,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.11783,
    "h": 125.7
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#5B771F
secondary
#6747AB
accent
#46E278
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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