#5F862F#5F862F

#5F862F is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.2% C 0.124 H 130.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5F862F
RGBrgb(95, 134, 47)
HSLhsl(87, 48%, 35%)
HSVhsv(87, 65%, 53%)
CMYKcmyk(29.1%, 0%, 64.9%, 47.5%)
CIE-LABlab(51.48, -28.35, 41.25)
CIE-LCHlch(51.48, 50.05, 124.50°)
OKLaboklab(57.21% -0.0799 0.095)
OKLCHoklch(57.21% 0.124 130.1)
XYZxyz(13.7574, 19.6880, 5.7641)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F862F #562F86
analogous
#86812F #5F862F #33862F
triadic
#5F862F #2F5F86 #862F5F
tetradic
#5F862F #2F8681 #562F86 #862F33
square
#5F862F #2F8681 #562F86 #862F33
split-complementary
#5F862F #2F3386 #812F86
monochromatic
#1F2B0F #3F591F #5F862F #7FB33F #9DC966

Accessibility & contrast

On white

4.25
#5F862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5F862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F862F
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F862F#FFFFFF#000000##000000
##5F862F1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D24
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#618074
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f862f;
/* rgb */ color: rgb(95, 134, 47);
/* oklch */ color: oklch(57.2% 0.124 130.1);
Tailwind
colors: {
  custom: {
    50: '#8fa96c',
    500: '#5f862f',
    950: '#000000',
  },
}
SCSS
$custom: #5f862f;
$custom-light: #8fa96c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f862f",
  "rgb": {
    "r": 95,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 86.897,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5721,
    "c": 0.12412,
    "h": 130.1
  },
  "luminance": 0.19688
}

Semantic roles & 50–950 ramp

primary
#5F862F
secondary
#8460B0
accent
#50D88D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F862F

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

Preview Lab → · Contrast checker → · Palette generator →

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