#5A8A42#5A8A42

#5A8A42 is a mid, moderate green. Relative luminance 0.207; OKLCH L 58.2% C 0.115 H 136.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5A8A42
RGBrgb(90, 138, 66)
HSLhsl(100, 35%, 40%)
HSVhsv(100, 52%, 54%)
CMYKcmyk(34.8%, 0%, 52.2%, 45.9%)
CIE-LABlab(52.67, -30.12, 33.24)
CIE-LCHlch(52.67, 44.86, 132.19°)
OKLaboklab(58.16% -0.083 0.0796)
OKLCHoklch(58.16% 0.115 136.2)
XYZxyz(14.2879, 20.7434, 8.4042)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A42 #72428A
analogous
#7E8A42 #5A8A42 #428A4E
triadic
#5A8A42 #425A8A #8A425A
tetradic
#5A8A42 #427E8A #72428A #8A4E42
square
#5A8A42 #427E8A #72428A #8A4E42
split-complementary
#5A8A42 #4E428A #8A427E
monochromatic
#24371A #3F612E #5A8A42 #76B059 #98C483

Accessibility & contrast

On white

4.08
#5A8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5A8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A42
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A42#FFFFFF#000000##000000
##5A8A421.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803C
Deuteranopia (green-blind)
#877C47
Tritanopia (blue-blind)
#598679
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a8a42;
/* rgb */ color: rgb(90, 138, 66);
/* oklch */ color: oklch(58.2% 0.115 136.2);
Tailwind
colors: {
  custom: {
    50: '#8bac78',
    500: '#5a8a42',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a42;
$custom-light: #8bac78;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a42",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 100,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.115,
    "h": 136.2
  },
  "luminance": 0.20744
}

Semantic roles & 50–950 ramp

primary
#5A8A42
secondary
#9D79AE
accent
#5CCBA6
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1009
muted
#7D7F7B

Preview Lab

Preview with #5A8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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