#5D8A31#5D8A31

#5D8A31 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.129 H 132.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5D8A31
RGBrgb(93, 138, 49)
HSLhsl(90, 48%, 37%)
HSVhsv(90, 64%, 54%)
CMYKcmyk(32.6%, 0%, 64.5%, 45.9%)
CIE-LABlab(52.65, -30.85, 41.58)
CIE-LCHlch(52.65, 51.78, 126.58°)
OKLaboklab(58.13% -0.0865 0.096)
OKLCHoklch(58.13% 0.129 132)
XYZxyz(14.1569, 20.7254, 6.1596)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A31 #5E318A
analogous
#8A8A31 #5D8A31 #318A31
triadic
#5D8A31 #315D8A #8A315D
tetradic
#5D8A31 #318A8A #5E318A #8A3131
square
#5D8A31 #318A8A #5E318A #8A3131
split-complementary
#5D8A31 #31318A #8A318A
monochromatic
#203011 #3F5D21 #5D8A31 #7BB741 #9ACA6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D8A31#FFFFFF#000000##000000
##5D8A311.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)
#908026
Deuteranopia (green-blind)
#897C38
Tritanopia (blue-blind)
#5E8477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5d8a31;
/* rgb */ color: rgb(93, 138, 49);
/* oklch */ color: oklch(58.1% 0.129 132.0);
Tailwind
colors: {
  custom: {
    50: '#8eac6d',
    500: '#5d8a31',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a31;
$custom-light: #8eac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a31",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 90.337,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58131,
    "c": 0.12917,
    "h": 132
  },
  "luminance": 0.20726
}

Semantic roles & 50–950 ramp

primary
#5D8A31
secondary
#8C65B2
accent
#51D795
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0D1007
muted
#7D7F7A

Preview Lab

Preview with #5D8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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