#5B771C#5B771C

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

Color values

HEX#5B771C
RGBrgb(91, 119, 28)
HSLhsl(78, 62%, 29%)
HSVhsv(78, 76%, 47%)
CMYKcmyk(23.5%, 0%, 76.5%, 53.3%)
CIE-LABlab(46.31, -24.04, 43.82)
CIE-LCHlch(46.31, 49.98, 118.75°)
OKLaboklab(52.9% -0.0695 0.0976)
OKLCHoklch(52.9% 0.12 125.5)
XYZxyz(11.1209, 15.5015, 3.5046)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B771C #381C77
analogous
#77661C #5B771C #2D771C
triadic
#5B771C #1C5B77 #771C5B
tetradic
#5B771C #1C7766 #381C77 #771C2D
square
#5B771C #1C7766 #381C77 #771C2D
split-complementary
#5B771C #1C2D77 #661C77
monochromatic
#131906 #354510 #5B771C #81A928 #A3D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B771C#FFFFFF#000000##FFFFFF
##5B771C1.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)
#7E6F0A
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#5F7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b771c;
/* rgb */ color: rgb(91, 119, 28);
/* oklch */ color: oklch(52.9% 0.120 125.5);
Tailwind
colors: {
  custom: {
    50: '#8c9e5f',
    500: '#5b771c',
    950: '#000000',
  },
}
SCSS
$custom: #5b771c;
$custom-light: #8c9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b771c",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 78.462,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52902,
    "c": 0.11983,
    "h": 125.5
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#5B771C
secondary
#6444AB
accent
#43E575
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B771C

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

Preview Lab → · Contrast checker → · Palette generator →

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