#5D881F#5D881F

#5D881F is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.5% C 0.139 H 129.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5D881F
RGBrgb(93, 136, 31)
HSLhsl(85, 63%, 33%)
HSVhsv(85, 77%, 53%)
CMYKcmyk(31.6%, 0%, 77.2%, 46.7%)
CIE-LABlab(51.88, -31.27, 48.14)
CIE-LCHlch(51.88, 57.41, 123.00°)
OKLaboklab(57.46% -0.0891 0.1071)
OKLCHoklch(57.46% 0.139 129.8)
XYZxyz(13.5656, 20.0340, 4.4483)
Luminance0.2003 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D881F #4A1F88
analogous
#887E1F #5D881F #29881F
triadic
#5D881F #1F5D88 #881F5D
tetradic
#5D881F #1F887E #4A1F88 #881F29
square
#5D881F #1F887E #4A1F88 #881F29
split-complementary
#5D881F #1F2988 #7E1F88
monochromatic
#192408 #3B5614 #5D881F #7FBA2A #9DD64B

Accessibility & contrast

On white

4.19
#5D881F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5D881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D881F
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D881F#FFFFFF#000000##000000
##5D881F1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E07
Deuteranopia (green-blind)
#897B29
Tritanopia (blue-blind)
#608274
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5d881f;
/* rgb */ color: rgb(93, 136, 31);
/* oklch */ color: oklch(57.5% 0.139 129.8);
Tailwind
colors: {
  custom: {
    50: '#8fab63',
    500: '#5d881f',
    950: '#000000',
  },
}
SCSS
$custom: #5d881f;
$custom-light: #8fab63;
$custom-dark: #000000;
JSON
{
  "hex": "#5d881f",
  "rgb": {
    "r": 93,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 84.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57459,
    "c": 0.13934,
    "h": 129.8
  },
  "luminance": 0.20034
}

Semantic roles & 50–950 ramp

primary
#5D881F
secondary
#774AB9
accent
#42E685
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D881F

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

Preview Lab → · Contrast checker → · Palette generator →

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