#5F771B#5F771B

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

Color values

HEX#5F771B
RGBrgb(95, 119, 27)
HSLhsl(76, 63%, 29%)
HSVhsv(76, 77%, 47%)
CMYKcmyk(20.2%, 0%, 77.3%, 53.3%)
CIE-LABlab(46.59, -22.37, 44.55)
CIE-LCHlch(46.59, 49.85, 116.66°)
OKLaboklab(53.19% -0.0653 0.0988)
OKLCHoklch(53.19% 0.118 123.4)
XYZxyz(11.5141, 15.7056, 3.4616)
Luminance0.1571 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F771B #331B77
analogous
#77611B #5F771B #31771B
triadic
#5F771B #1B5F77 #771B5F
tetradic
#5F771B #1B7761 #331B77 #771B31
square
#5F771B #1B7761 #331B77 #771B31
split-complementary
#5F771B #1B3177 #611B77
monochromatic
#141906 #374510 #5F771B #87A926 #ABD23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F771B#FFFFFF#000000##FFFFFF
##5F771B1.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)
#7E6F07
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#647165
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f771b;
/* rgb */ color: rgb(95, 119, 27);
/* oklch */ color: oklch(53.2% 0.118 123.4);
Tailwind
colors: {
  custom: {
    50: '#8f9e5f',
    500: '#5f771b',
    950: '#000000',
  },
}
SCSS
$custom: #5f771b;
$custom-light: #8f9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f771b",
  "rgb": {
    "r": 95,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 75.652,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53192,
    "c": 0.11846,
    "h": 123.4
  },
  "luminance": 0.15706
}

Semantic roles & 50–950 ramp

primary
#5F771B
secondary
#5E42AB
accent
#42E66D
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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