#5F851B#5F851B

#5F851B is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.137 H 128.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5F851B
RGBrgb(95, 133, 27)
HSLhsl(82, 66%, 31%)
HSVhsv(82, 80%, 52%)
CMYKcmyk(28.6%, 0%, 79.7%, 47.8%)
CIE-LABlab(51.02, -29.27, 48.75)
CIE-LCHlch(51.02, 56.86, 120.98°)
OKLaboklab(56.79% -0.0841 0.1077)
OKLCHoklch(56.79% 0.137 128)
XYZxyz(13.3047, 19.2868, 4.0584)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F851B #411B85
analogous
#85761B #5F851B #2A851B
triadic
#5F851B #1B5F85 #851B5F
tetradic
#5F851B #1B8576 #411B85 #851B2A
square
#5F851B #1B8576 #411B85 #851B2A
split-complementary
#5F851B #1B2A85 #761B85
monochromatic
#161F06 #3B5211 #5F851B #83B825 #A3D942

Accessibility & contrast

On white

4.32
#5F851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5F851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F851B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F851B#FFFFFF#000000##000000
##5F851B1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#637F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f851b;
/* rgb */ color: rgb(95, 133, 27);
/* oklch */ color: oklch(56.8% 0.137 128.0);
Tailwind
colors: {
  custom: {
    50: '#90a861',
    500: '#5f851b',
    950: '#000000',
  },
}
SCSS
$custom: #5f851b;
$custom-light: #90a861;
$custom-dark: #000000;
JSON
{
  "hex": "#5f851b",
  "rgb": {
    "r": 95,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 81.509,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56788,
    "c": 0.13663,
    "h": 128
  },
  "luminance": 0.19287
}

Semantic roles & 50–950 ramp

primary
#5F851B
secondary
#6D44B8
accent
#3FE97C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F851B

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

Preview Lab → · Contrast checker → · Palette generator →

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