#5A792B#5A792B

#5A792B is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.112 H 128.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A792B
RGBrgb(90, 121, 43)
HSLhsl(84, 48%, 32%)
HSVhsv(84, 64%, 47%)
CMYKcmyk(25.6%, 0%, 64.5%, 52.5%)
CIE-LABlab(47.00, -24.34, 38.11)
CIE-LCHlch(47.00, 45.22, 122.57°)
OKLaboklab(53.48% -0.0689 0.0879)
OKLCHoklch(53.48% 0.112 128.1)
XYZxyz(11.4898, 16.0226, 4.7724)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A792B #4A2B79
analogous
#79712B #5A792B #33792B
triadic
#5A792B #2B5A79 #792B5A
tetradic
#5A792B #2B7971 #4A2B79 #792B33
square
#5A792B #2B7971 #4A2B79 #792B33
split-complementary
#5A792B #2B3379 #712B79
monochromatic
#171F0B #384C1B #5A792B #7CA63B #9AC45A

Accessibility & contrast

On white

4.99
#5A792B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5A792B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A792B
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A792B#FFFFFF#000000##FFFFFF
##5A792B1.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7122
Deuteranopia (green-blind)
#7B6F31
Tritanopia (blue-blind)
#5D7469
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a792b;
/* rgb */ color: rgb(90, 121, 43);
/* oklch */ color: oklch(53.5% 0.112 128.1);
Tailwind
colors: {
  custom: {
    50: '#8ba068',
    500: '#5a792b',
    950: '#000000',
  },
}
SCSS
$custom: #5a792b;
$custom-light: #8ba068;
$custom-dark: #000000;
JSON
{
  "hex": "#5a792b",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 83.846,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53483,
    "c": 0.11169,
    "h": 128.1
  },
  "luminance": 0.16023
}

Semantic roles & 50–950 ramp

primary
#5A792B
secondary
#7756AA
accent
#51D786
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A792B

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

Preview Lab → · Contrast checker → · Palette generator →

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