#5F871C#5F871C

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

Color values

HEX#5F871C
RGBrgb(95, 135, 28)
HSLhsl(82, 66%, 32%)
HSVhsv(82, 79%, 53%)
CMYKcmyk(29.6%, 0%, 79.3%, 47.1%)
CIE-LABlab(51.66, -30.17, 49.01)
CIE-LCHlch(51.66, 57.55, 121.61°)
OKLaboklab(57.31% -0.0865 0.1084)
OKLCHoklch(57.31% 0.139 128.6)
XYZxyz(13.5929, 19.8443, 4.2126)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F871C #441C87
analogous
#877A1C #5F871C #2A871C
triadic
#5F871C #1C5F87 #871C5F
tetradic
#5F871C #1C877A #441C87 #871C2A
square
#5F871C #1C877A #441C87 #871C2A
split-complementary
#5F871C #1C2A87 #7A1C87
monochromatic
#182207 #3B5411 #5F871C #83BA27 #A1D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F871C#FFFFFF#000000##000000
##5F871C1.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)
#887A27
Tritanopia (blue-blind)
#628173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f871c;
/* rgb */ color: rgb(95, 135, 28);
/* oklch */ color: oklch(57.3% 0.139 128.6);
Tailwind
colors: {
  custom: {
    50: '#90aa62',
    500: '#5f871c',
    950: '#000000',
  },
}
SCSS
$custom: #5f871c;
$custom-light: #90aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f871c",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 82.43,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5731,
    "c": 0.13867,
    "h": 128.6
  },
  "luminance": 0.19845
}

Semantic roles & 50–950 ramp

primary
#5F871C
secondary
#7145BA
accent
#3FE97F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F871C

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

Preview Lab → · Contrast checker → · Palette generator →

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