#5A772B#5A772B

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

Color values

HEX#5A772B
RGBrgb(90, 119, 43)
HSLhsl(83, 47%, 32%)
HSVhsv(83, 64%, 47%)
CMYKcmyk(24.4%, 0%, 63.9%, 53.3%)
CIE-LABlab(46.37, -23.33, 37.41)
CIE-LCHlch(46.37, 44.09, 121.95°)
OKLaboklab(52.97% -0.0661 0.0864)
OKLCHoklch(52.97% 0.109 127.4)
XYZxyz(11.2493, 15.5415, 4.6922)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A772B #482B77
analogous
#776E2B #5A772B #34772B
triadic
#5A772B #2B5A77 #772B5A
tetradic
#5A772B #2B776E #482B77 #772B34
square
#5A772B #2B776E #482B77 #772B34
split-complementary
#5A772B #2B3477 #6E2B77
monochromatic
#161D0B #384A1B #5A772B #7CA43B #9BC359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A772B#FFFFFF#000000##FFFFFF
##5A772B1.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)
#7D6F22
Deuteranopia (green-blind)
#796D30
Tritanopia (blue-blind)
#5D7267
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a772b;
/* rgb */ color: rgb(90, 119, 43);
/* oklch */ color: oklch(53.0% 0.109 127.4);
Tailwind
colors: {
  custom: {
    50: '#8b9e68',
    500: '#5a772b',
    950: '#000000',
  },
}
SCSS
$custom: #5a772b;
$custom-light: #8b9e68;
$custom-dark: #000000;
JSON
{
  "hex": "#5a772b",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 43
  },
  "hsl": {
    "h": 82.895,
    "s": 46.914,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52967,
    "c": 0.10881,
    "h": 127.4
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#5A772B
secondary
#7555A9
accent
#51D784
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A772B

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

Preview Lab → · Contrast checker → · Palette generator →

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