#5A771D#5A771D

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

Color values

HEX#5A771D
RGBrgb(90, 119, 29)
HSLhsl(79, 61%, 29%)
HSVhsv(79, 76%, 47%)
CMYKcmyk(24.4%, 0%, 75.6%, 53.3%)
CIE-LABlab(46.25, -24.41, 43.35)
CIE-LCHlch(46.25, 49.75, 119.38°)
OKLaboklab(52.84% -0.0704 0.0968)
OKLCHoklch(52.84% 0.12 126)
XYZxyz(11.0351, 15.4559, 3.5641)
Luminance0.1546 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A771D #3A1D77
analogous
#77671D #5A771D #2D771D
triadic
#5A771D #1D5A77 #771D5A
tetradic
#5A771D #1D7767 #3A1D77 #771D2D
square
#5A771D #1D7767 #3A1D77 #771D2D
split-complementary
#5A771D #1D2D77 #671D77
monochromatic
#131906 #354611 #5A771D #7FA829 #A1D03E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A771D#FFFFFF#000000##FFFFFF
##5A771D1.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)
#7E6F0C
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#5E7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a771d;
/* rgb */ color: rgb(90, 119, 29);
/* oklch */ color: oklch(52.8% 0.120 126.0);
Tailwind
colors: {
  custom: {
    50: '#8c9e60',
    500: '#5a771d',
    950: '#000000',
  },
}
SCSS
$custom: #5a771d;
$custom-light: #8c9e60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a771d",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 79.333,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52837,
    "c": 0.1197,
    "h": 126
  },
  "luminance": 0.15456
}

Semantic roles & 50–950 ramp

primary
#5A771D
secondary
#6645AB
accent
#44E477
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A771D

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

Preview Lab → · Contrast checker → · Palette generator →

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