#5F771F#5F771F

#5F771F is a mid, moderate yellow-green. Relative luminance 0.157; OKLCH L 53.2% C 0.116 H 123.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5F771F
RGBrgb(95, 119, 31)
HSLhsl(76, 59%, 29%)
HSVhsv(76, 74%, 47%)
CMYKcmyk(20.2%, 0%, 73.9%, 53.3%)
CIE-LABlab(46.61, -22.13, 43.04)
CIE-LCHlch(46.61, 48.40, 117.20°)
OKLaboklab(53.22% -0.0643 0.0964)
OKLCHoklch(53.22% 0.116 123.7)
XYZxyz(11.5636, 15.7254, 3.7222)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F771F #371F77
analogous
#77631F #5F771F #33771F
triadic
#5F771F #1F5F77 #771F5F
tetradic
#5F771F #1F7763 #371F77 #771F33
square
#5F771F #1F7763 #371F77 #771F33
split-complementary
#5F771F #1F3377 #631F77
monochromatic
#131806 #384612 #5F771F #86A82C #A8CE43

Accessibility & contrast

On white

5.07
#5F771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5F771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F771F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F771F#FFFFFF#000000##FFFFFF
##5F771F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F10
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#647166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f771f;
/* rgb */ color: rgb(95, 119, 31);
/* oklch */ color: oklch(53.2% 0.116 123.7);
Tailwind
colors: {
  custom: {
    50: '#8f9e61',
    500: '#5f771f',
    950: '#000000',
  },
}
SCSS
$custom: #5f771f;
$custom-light: #8f9e61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f771f",
  "rgb": {
    "r": 95,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 76.364,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53222,
    "c": 0.11584,
    "h": 123.7
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#5F771F
secondary
#6247AB
accent
#46E270
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F771F

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

Preview Lab → · Contrast checker → · Palette generator →

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