#5D871F#5D871F

#5D871F is a mid, vivid yellow-green. Relative luminance 0.198; OKLCH L 57.2% C 0.138 H 129.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5D871F
RGBrgb(93, 135, 31)
HSLhsl(84, 63%, 33%)
HSVhsv(84, 77%, 53%)
CMYKcmyk(31.1%, 0%, 77%, 47.1%)
CIE-LABlab(51.56, -30.80, 47.84)
CIE-LCHlch(51.56, 56.90, 122.78°)
OKLaboklab(57.2% -0.0878 0.1065)
OKLCHoklch(57.2% 0.138 129.5)
XYZxyz(13.4254, 19.7536, 4.4015)
Luminance0.1975 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D871F #491F87
analogous
#877D1F #5D871F #29871F
triadic
#5D871F #1F5D87 #871F5D
tetradic
#5D871F #1F877D #491F87 #871F29
square
#5D871F #1F877D #491F87 #871F29
split-complementary
#5D871F #1F2987 #7D1F87
monochromatic
#182308 #3B5514 #5D871F #7FB92A #9ED64B

Accessibility & contrast

On white

4.24
#5D871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5D871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D871F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D871F#FFFFFF#000000##000000
##5D871F1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#608173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5d871f;
/* rgb */ color: rgb(93, 135, 31);
/* oklch */ color: oklch(57.2% 0.138 129.5);
Tailwind
colors: {
  custom: {
    50: '#8faa63',
    500: '#5d871f',
    950: '#000000',
  },
}
SCSS
$custom: #5d871f;
$custom-light: #8faa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5d871f",
  "rgb": {
    "r": 93,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 84.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.572,
    "c": 0.13804,
    "h": 129.5
  },
  "luminance": 0.19754
}

Semantic roles & 50–950 ramp

primary
#5D871F
secondary
#764AB8
accent
#42E684
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D871F

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

Preview Lab → · Contrast checker → · Palette generator →

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