#5E8A31#5E8A31

#5E8A31 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.129 H 131.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5E8A31
RGBrgb(94, 138, 49)
HSLhsl(90, 48%, 37%)
HSVhsv(90, 64%, 54%)
CMYKcmyk(31.9%, 0%, 64.5%, 45.9%)
CIE-LABlab(52.71, -30.47, 41.66)
CIE-LCHlch(52.71, 51.61, 126.18°)
OKLaboklab(58.19% -0.0855 0.0961)
OKLCHoklch(58.19% 0.129 131.6)
XYZxyz(14.2588, 20.7779, 6.1644)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E8A31 #5D318A
analogous
#8A8A31 #5E8A31 #318A31
triadic
#5E8A31 #315E8A #8A315E
tetradic
#5E8A31 #318A8A #5D318A #8A3131
square
#5E8A31 #318A8A #5D318A #8A3131
split-complementary
#5E8A31 #31318A #8A318A
monochromatic
#203011 #3F5D21 #5E8A31 #7DB741 #9BCA6B

Accessibility & contrast

On white

4.07
#5E8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5E8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E8A31
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E8A31#FFFFFF#000000##000000
##5E8A311.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#908026
Deuteranopia (green-blind)
#8A7D38
Tritanopia (blue-blind)
#5F8477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5e8a31;
/* rgb */ color: rgb(94, 138, 49);
/* oklch */ color: oklch(58.2% 0.129 131.6);
Tailwind
colors: {
  custom: {
    50: '#8fac6d',
    500: '#5e8a31',
    950: '#000000',
  },
}
SCSS
$custom: #5e8a31;
$custom-light: #8fac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e8a31",
  "rgb": {
    "r": 94,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 89.663,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58194,
    "c": 0.12862,
    "h": 131.6
  },
  "luminance": 0.20778
}

Semantic roles & 50–950 ramp

primary
#5E8A31
secondary
#8B65B2
accent
#51D793
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5E8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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