#5A772D#5A772D

#5A772D is a mid, moderate yellow-green. Relative luminance 0.156; OKLCH L 53.0% C 0.107 H 127.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5A772D
RGBrgb(90, 119, 45)
HSLhsl(84, 45%, 32%)
HSVhsv(84, 62%, 47%)
CMYKcmyk(24.4%, 0%, 62.2%, 53.3%)
CIE-LABlab(46.39, -23.15, 36.47)
CIE-LCHlch(46.39, 43.20, 122.40°)
OKLaboklab(52.99% -0.0654 0.0847)
OKLCHoklch(52.99% 0.107 127.7)
XYZxyz(11.2869, 15.5566, 4.8902)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A772D #4A2D77
analogous
#776F2D #5A772D #35772D
triadic
#5A772D #2D5A77 #772D5A
tetradic
#5A772D #2D776F #4A2D77 #772D35
square
#5A772D #2D776F #4A2D77 #772D35
split-complementary
#5A772D #2D3577 #6F2D77
monochromatic
#171E0B #384B1C #5A772D #7CA33E #9AC25D

Accessibility & contrast

On white

5.11
#5A772D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5A772D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A772D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A772D#FFFFFF#000000##FFFFFF
##5A772D1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F25
Deuteranopia (green-blind)
#796D32
Tritanopia (blue-blind)
#5D7267
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a772d;
/* rgb */ color: rgb(90, 119, 45);
/* oklch */ color: oklch(53.0% 0.107 127.7);
Tailwind
colors: {
  custom: {
    50: '#8b9e69',
    500: '#5a772d',
    950: '#000000',
  },
}
SCSS
$custom: #5a772d;
$custom-light: #8b9e69;
$custom-dark: #000000;
JSON
{
  "hex": "#5a772d",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 45
  },
  "hsl": {
    "h": 83.514,
    "s": 45.122,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5299,
    "c": 0.10699,
    "h": 127.7
  },
  "luminance": 0.15557
}

Semantic roles & 50–950 ramp

primary
#5A772D
secondary
#7758A8
accent
#53D586
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A772D

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

Preview Lab → · Contrast checker → · Palette generator →

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