#5F871F#5F871F

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

Color values

HEX#5F871F
RGBrgb(95, 135, 31)
HSLhsl(83, 63%, 33%)
HSVhsv(83, 77%, 53%)
CMYKcmyk(29.6%, 0%, 77%, 47.1%)
CIE-LABlab(51.68, -30.00, 48.00)
CIE-LCHlch(51.68, 56.60, 122.01°)
OKLaboklab(57.33% -0.0858 0.1068)
OKLCHoklch(57.33% 0.137 128.8)
XYZxyz(13.6306, 19.8594, 4.4112)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F871F #471F87
analogous
#877B1F #5F871F #2B871F
triadic
#5F871F #1F5F87 #871F5F
tetradic
#5F871F #1F877B #471F87 #871F2B
square
#5F871F #1F877B #471F87 #871F2B
split-complementary
#5F871F #1F2B87 #7B1F87
monochromatic
#192308 #3C5514 #5F871F #82B92A #A0D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F871F#FFFFFF#000000##000000
##5F871F1.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)
#8E7D08
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#628173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f871f;
/* rgb */ color: rgb(95, 135, 31);
/* oklch */ color: oklch(57.3% 0.137 128.8);
Tailwind
colors: {
  custom: {
    50: '#90aa63',
    500: '#5f871f',
    950: '#000000',
  },
}
SCSS
$custom: #5f871f;
$custom-light: #90aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f871f",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 83.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5733,
    "c": 0.13696,
    "h": 128.8
  },
  "luminance": 0.1986
}

Semantic roles & 50–950 ramp

primary
#5F871F
secondary
#744AB8
accent
#42E681
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F871F

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

Preview Lab → · Contrast checker → · Palette generator →

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