#5F871E#5F871E

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

Color values

HEX#5F871E
RGBrgb(95, 135, 30)
HSLhsl(83, 64%, 32%)
HSVhsv(83, 78%, 53%)
CMYKcmyk(29.6%, 0%, 77.8%, 47.1%)
CIE-LABlab(51.67, -30.06, 48.34)
CIE-LCHlch(51.67, 56.92, 121.87°)
OKLaboklab(57.32% -0.086 0.1073)
OKLCHoklch(57.32% 0.138 128.7)
XYZxyz(13.6176, 19.8542, 4.3428)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F871E #461E87
analogous
#877A1E #5F871E #2B871E
triadic
#5F871E #1E5F87 #871E5F
tetradic
#5F871E #1E877A #461E87 #871E2B
square
#5F871E #1E877A #461E87 #871E2B
split-complementary
#5F871E #1E2B87 #7A1E87
monochromatic
#192308 #3C5513 #5F871E #82B929 #A1D749

Accessibility & contrast

On white

4.22
#5F871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F871E#FFFFFF#000000##000000
##5F871E1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f871e;
/* rgb */ color: rgb(95, 135, 30);
/* oklch */ color: oklch(57.3% 0.138 128.7);
Tailwind
colors: {
  custom: {
    50: '#90aa63',
    500: '#5f871e',
    950: '#000000',
  },
}
SCSS
$custom: #5f871e;
$custom-light: #90aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f871e",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 82.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57323,
    "c": 0.13755,
    "h": 128.7
  },
  "luminance": 0.19855
}

Semantic roles & 50–950 ramp

primary
#5F871E
secondary
#7348B9
accent
#41E780
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F871E

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

Preview Lab → · Contrast checker → · Palette generator →

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