#5A771F#5A771F

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

Color values

HEX#5A771F
RGBrgb(90, 119, 31)
HSLhsl(80, 59%, 29%)
HSVhsv(80, 74%, 47%)
CMYKcmyk(24.4%, 0%, 73.9%, 53.3%)
CIE-LABlab(46.27, -24.28, 42.58)
CIE-LCHlch(46.27, 49.02, 119.69°)
OKLaboklab(52.85% -0.0699 0.0955)
OKLCHoklch(52.85% 0.118 126.2)
XYZxyz(11.0606, 15.4661, 3.6986)
Luminance0.1547 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A771F #3C1F77
analogous
#77681F #5A771F #2E771F
triadic
#5A771F #1F5A77 #771F5A
tetradic
#5A771F #1F7768 #3C1F77 #771F2E
square
#5A771F #1F7768 #3C1F77 #771F2E
split-complementary
#5A771F #1F2E77 #681F77
monochromatic
#121806 #354612 #5A771F #7FA82C #A0CE43

Accessibility & contrast

On white

5.13
#5A771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A771F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A771F#FFFFFF#000000##FFFFFF
##5A771F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a771f;
/* rgb */ color: rgb(90, 119, 31);
/* oklch */ color: oklch(52.9% 0.118 126.2);
Tailwind
colors: {
  custom: {
    50: '#8c9e61',
    500: '#5a771f',
    950: '#000000',
  },
}
SCSS
$custom: #5a771f;
$custom-light: #8c9e61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a771f",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 79.773,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52853,
    "c": 0.11835,
    "h": 126.2
  },
  "luminance": 0.15466
}

Semantic roles & 50–950 ramp

primary
#5A771F
secondary
#6847AB
accent
#46E279
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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