#5A771E#5A771E

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

Color values

HEX#5A771E
RGBrgb(90, 119, 30)
HSLhsl(80, 60%, 29%)
HSVhsv(80, 75%, 47%)
CMYKcmyk(24.4%, 0%, 74.8%, 53.3%)
CIE-LABlab(46.26, -24.34, 42.97)
CIE-LCHlch(46.26, 49.39, 119.53°)
OKLaboklab(52.85% -0.0701 0.0962)
OKLCHoklch(52.85% 0.119 126.1)
XYZxyz(11.0477, 15.4609, 3.6303)
Luminance0.1546 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A771E #3B1E77
analogous
#77681E #5A771E #2D771E
triadic
#5A771E #1E5A77 #771E5A
tetradic
#5A771E #1E7768 #3B1E77 #771E2D
square
#5A771E #1E7768 #3B1E77 #771E2D
split-complementary
#5A771E #1E2D77 #681E77
monochromatic
#121806 #354612 #5A771E #7FA82A #A1CF40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A771E#FFFFFF#000000##FFFFFF
##5A771E1.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)
#7E6F0E
Deuteranopia (green-blind)
#7A6D26
Tritanopia (blue-blind)
#5E7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a771e;
/* rgb */ color: rgb(90, 119, 30);
/* oklch */ color: oklch(52.8% 0.119 126.1);
Tailwind
colors: {
  custom: {
    50: '#8c9e60',
    500: '#5a771e',
    950: '#000000',
  },
}
SCSS
$custom: #5a771e;
$custom-light: #8c9e60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a771e",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 79.551,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.11903,
    "h": 126.1
  },
  "luminance": 0.15461
}

Semantic roles & 50–950 ramp

primary
#5A771E
secondary
#6746AB
accent
#45E378
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A771E

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

Preview Lab → · Contrast checker → · Palette generator →

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