#5F871B#5F871B

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

Color values

HEX#5F871B
RGBrgb(95, 135, 27)
HSLhsl(82, 67%, 32%)
HSVhsv(82, 80%, 53%)
CMYKcmyk(29.6%, 0%, 80%, 47.1%)
CIE-LABlab(51.66, -30.22, 49.34)
CIE-LCHlch(51.66, 57.86, 121.49°)
OKLaboklab(57.3% -0.0867 0.1089)
OKLCHoklch(57.3% 0.139 128.5)
XYZxyz(13.5811, 19.8396, 4.1506)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F871B #431B87
analogous
#87791B #5F871B #29871B
triadic
#5F871B #1B5F87 #871B5F
tetradic
#5F871B #1B8779 #431B87 #871B29
square
#5F871B #1B8779 #431B87 #871B29
split-complementary
#5F871B #1B2987 #791B87
monochromatic
#172107 #3B5411 #5F871B #83BA25 #A2D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F871B#FFFFFF#000000##000000
##5F871B1.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)
#8E7D00
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#628173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f871b;
/* rgb */ color: rgb(95, 135, 27);
/* oklch */ color: oklch(57.3% 0.139 128.5);
Tailwind
colors: {
  custom: {
    50: '#90aa61',
    500: '#5f871b',
    950: '#000000',
  },
}
SCSS
$custom: #5f871b;
$custom-light: #90aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f871b",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 82.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.13921,
    "h": 128.5
  },
  "luminance": 0.1984
}

Semantic roles & 50–950 ramp

primary
#5F871B
secondary
#7044BA
accent
#3EEA7E
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F871B

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

Preview Lab → · Contrast checker → · Palette generator →

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