#5F862D#5F862D

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

Color values

HEX#5F862D
RGBrgb(95, 134, 45)
HSLhsl(86, 50%, 35%)
HSVhsv(86, 66%, 53%)
CMYKcmyk(29.1%, 0%, 66.4%, 47.5%)
CIE-LABlab(51.46, -28.52, 42.13)
CIE-LCHlch(51.46, 50.88, 124.10°)
OKLaboklab(57.19% -0.0805 0.0966)
OKLCHoklch(57.19% 0.126 129.8)
XYZxyz(13.7180, 19.6722, 5.5565)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F862D #542D86
analogous
#86802D #5F862D #32862D
triadic
#5F862D #2D5F86 #862D5F
tetradic
#5F862D #2D8680 #542D86 #862D32
square
#5F862D #2D8680 #542D86 #862D32
split-complementary
#5F862D #2D3286 #802D86
monochromatic
#1E2A0E #3F581E #5F862D #7FB43C #9DCB63

Accessibility & contrast

On white

4.26
#5F862D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5F862D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F862D
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F862D#FFFFFF#000000##000000
##5F862D1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f862d;
/* rgb */ color: rgb(95, 134, 45);
/* oklch */ color: oklch(57.2% 0.126 129.8);
Tailwind
colors: {
  custom: {
    50: '#8fa96a',
    500: '#5f862d',
    950: '#000000',
  },
}
SCSS
$custom: #5f862d;
$custom-light: #8fa96a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f862d",
  "rgb": {
    "r": 95,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 86.292,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.12577,
    "h": 129.8
  },
  "luminance": 0.19673
}

Semantic roles & 50–950 ramp

primary
#5F862D
secondary
#825EB1
accent
#4FD98B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F862D

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

Preview Lab → · Contrast checker → · Palette generator →

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