#5A8342#5A8342

#5A8342 is a mid, moderate yellow-green. Relative luminance 0.188; OKLCH L 56.4% C 0.104 H 135.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5A8342
RGBrgb(90, 131, 66)
HSLhsl(98, 33%, 39%)
HSVhsv(98, 50%, 51%)
CMYKcmyk(31.3%, 0%, 49.6%, 48.6%)
CIE-LABlab(50.45, -26.74, 30.53)
CIE-LCHlch(50.45, 40.58, 131.22°)
OKLaboklab(56.36% -0.0737 0.0736)
OKLCHoklch(56.36% 0.104 135)
XYZxyz(13.3158, 18.7991, 8.0802)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8342 #6B4283
analogous
#7A8342 #5A8342 #42834A
triadic
#5A8342 #425A83 #83425A
tetradic
#5A8342 #427A83 #6B4283 #834A42
square
#5A8342 #427A83 #6B4283 #834A42
split-complementary
#5A8342 #4A4283 #83427A
monochromatic
#223219 #3E5A2D #5A8342 #76AB58 #97BF80

Accessibility & contrast

On white

4.41
#5A8342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5A8342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8342
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8342#FFFFFF#000000##000000
##5A83421.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3D
Deuteranopia (green-blind)
#817746
Tritanopia (blue-blind)
#5A7F74
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a8342;
/* rgb */ color: rgb(90, 131, 66);
/* oklch */ color: oklch(56.4% 0.104 135.0);
Tailwind
colors: {
  custom: {
    50: '#8ba778',
    500: '#5a8342',
    950: '#000000',
  },
}
SCSS
$custom: #5a8342;
$custom-light: #8ba778;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8342",
  "rgb": {
    "r": 90,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 97.846,
    "s": 32.995,
    "l": 38.627
  },
  "oklch": {
    "l": 0.56364,
    "c": 0.10413,
    "h": 135
  },
  "luminance": 0.188
}

Semantic roles & 50–950 ramp

primary
#5A8342
secondary
#9777AA
accent
#5FC9A2
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C0F09
muted
#7D7F7B

Preview Lab

Preview with #5A8342

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

Preview Lab → · Contrast checker → · Palette generator →

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