#5F771C#5F771C

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

Color values

HEX#5F771C
RGBrgb(95, 119, 28)
HSLhsl(76, 62%, 29%)
HSVhsv(76, 76%, 47%)
CMYKcmyk(20.2%, 0%, 76.5%, 53.3%)
CIE-LABlab(46.59, -22.31, 44.18)
CIE-LCHlch(46.59, 49.50, 116.79°)
OKLaboklab(53.2% -0.065 0.0983)
OKLCHoklch(53.2% 0.118 123.5)
XYZxyz(11.5259, 15.7103, 3.5236)
Luminance0.1571 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F771C #341C77
analogous
#77621C #5F771C #32771C
triadic
#5F771C #1C5F77 #771C5F
tetradic
#5F771C #1C7762 #341C77 #771C32
square
#5F771C #1C7762 #341C77 #771C32
split-complementary
#5F771C #1C3277 #621C77
monochromatic
#141906 #374510 #5F771C #87A928 #AAD13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F771C#FFFFFF#000000##FFFFFF
##5F771C1.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)
#7E6F0A
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#647166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f771c;
/* rgb */ color: rgb(95, 119, 28);
/* oklch */ color: oklch(53.2% 0.118 123.5);
Tailwind
colors: {
  custom: {
    50: '#8f9e5f',
    500: '#5f771c',
    950: '#000000',
  },
}
SCSS
$custom: #5f771c;
$custom-light: #8f9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f771c",
  "rgb": {
    "r": 95,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 75.824,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53199,
    "c": 0.11783,
    "h": 123.5
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#5F771C
secondary
#5F44AB
accent
#43E56E
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F771C

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

Preview Lab → · Contrast checker → · Palette generator →

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