#5F8A31#5F8A31

#5F8A31 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.3% C 0.128 H 131.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5F8A31
RGBrgb(95, 138, 49)
HSLhsl(89, 48%, 37%)
HSVhsv(89, 64%, 54%)
CMYKcmyk(31.2%, 0%, 64.5%, 45.9%)
CIE-LABlab(52.76, -30.08, 41.74)
CIE-LCHlch(52.76, 51.45, 125.78°)
OKLaboklab(58.26% -0.0845 0.0963)
OKLCHoklch(58.26% 0.128 131.3)
XYZxyz(14.3620, 20.8311, 6.1692)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A31 #5C318A
analogous
#8A8931 #5F8A31 #328A31
triadic
#5F8A31 #315F8A #8A315F
tetradic
#5F8A31 #318A89 #5C318A #8A3132
square
#5F8A31 #318A89 #5C318A #8A3132
split-complementary
#5F8A31 #31328A #89318A
monochromatic
#213011 #405D21 #5F8A31 #7EB741 #9CCA6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A31#FFFFFF#000000##000000
##5F8A311.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)
#908026
Deuteranopia (green-blind)
#8A7D38
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a31;
/* rgb */ color: rgb(95, 138, 49);
/* oklch */ color: oklch(58.3% 0.128 131.3);
Tailwind
colors: {
  custom: {
    50: '#8fac6d',
    500: '#5f8a31',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a31;
$custom-light: #8fac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a31",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 88.989,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58257,
    "c": 0.12808,
    "h": 131.3
  },
  "luminance": 0.20832
}

Semantic roles & 50–950 ramp

primary
#5F8A31
secondary
#8A65B2
accent
#51D792
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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