#5F871D#5F871D

#5F871D is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.138 H 128.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5F871D
RGBrgb(95, 135, 29)
HSLhsl(83, 65%, 32%)
HSVhsv(83, 79%, 53%)
CMYKcmyk(29.6%, 0%, 78.5%, 47.1%)
CIE-LABlab(51.67, -30.11, 48.68)
CIE-LCHlch(51.67, 57.24, 121.74°)
OKLaboklab(57.32% -0.0863 0.1079)
OKLCHoklch(57.32% 0.138 128.6)
XYZxyz(13.6050, 19.8492, 4.2766)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F871D #451D87
analogous
#877A1D #5F871D #2A871D
triadic
#5F871D #1D5F87 #871D5F
tetradic
#5F871D #1D877A #451D87 #871D2A
square
#5F871D #1D877A #451D87 #871D2A
split-complementary
#5F871D #1D2A87 #7A1D87
monochromatic
#182207 #3C5512 #5F871D #82B928 #A1D747

Accessibility & contrast

On white

4.23
#5F871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5F871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F871D
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F871D#FFFFFF#000000##000000
##5F871D1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D03
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#628173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f871d;
/* rgb */ color: rgb(95, 135, 29);
/* oklch */ color: oklch(57.3% 0.138 128.6);
Tailwind
colors: {
  custom: {
    50: '#90aa62',
    500: '#5f871d',
    950: '#000000',
  },
}
SCSS
$custom: #5f871d;
$custom-light: #90aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f871d",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 82.642,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57317,
    "c": 0.13812,
    "h": 128.6
  },
  "luminance": 0.1985
}

Semantic roles & 50–950 ramp

primary
#5F871D
secondary
#7246B9
accent
#40E87F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F871D

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

Preview Lab → · Contrast checker → · Palette generator →

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