#5D8A40#5D8A40

#5D8A40 is a mid, moderate yellow-green. Relative luminance 0.209; OKLCH L 58.3% C 0.115 H 134.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5D8A40
RGBrgb(93, 138, 64)
HSLhsl(96, 37%, 40%)
HSVhsv(96, 54%, 54%)
CMYKcmyk(32.6%, 0%, 53.6%, 45.9%)
CIE-LABlab(52.81, -29.26, 34.48)
CIE-LCHlch(52.81, 45.22, 130.32°)
OKLaboklab(58.32% -0.0809 0.0822)
OKLCHoklch(58.32% 0.115 134.5)
XYZxyz(14.5278, 20.8737, 8.1131)
Luminance0.2087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A40 #6D408A
analogous
#828A40 #5D8A40 #408A48
triadic
#5D8A40 #405D8A #8A405D
tetradic
#5D8A40 #40828A #6D408A #8A4840
square
#5D8A40 #40828A #6D408A #8A4840
split-complementary
#5D8A40 #48408A #8A4082
monochromatic
#253619 #41602D #5D8A40 #7AB156 #9BC480

Accessibility & contrast

On white

4.06
#5D8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5D8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8A40
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8A40#FFFFFF#000000##000000
##5D8A401.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8039
Deuteranopia (green-blind)
#887D45
Tritanopia (blue-blind)
#5D8579
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5d8a40;
/* rgb */ color: rgb(93, 138, 64);
/* oklch */ color: oklch(58.3% 0.115 134.5);
Tailwind
colors: {
  custom: {
    50: '#8dac77',
    500: '#5d8a40',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a40;
$custom-light: #8dac77;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a40",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 96.486,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58317,
    "c": 0.11532,
    "h": 134.5
  },
  "luminance": 0.20874
}

Semantic roles & 50–950 ramp

primary
#5D8A40
secondary
#9977AF
accent
#5BCDA0
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1009
muted
#7D7F7B

Preview Lab

Preview with #5D8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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