#5F841B#5F841B

#5F841B is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.135 H 127.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5F841B
RGBrgb(95, 132, 27)
HSLhsl(81, 66%, 31%)
HSVhsv(81, 80%, 52%)
CMYKcmyk(28%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.70, -28.79, 48.45)
CIE-LCHlch(50.70, 56.36, 120.72°)
OKLaboklab(56.53% -0.0828 0.107)
OKLCHoklch(56.53% 0.135 127.7)
XYZxyz(13.1684, 19.0143, 4.0130)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F841B #401B84
analogous
#84741B #5F841B #2A841B
triadic
#5F841B #1B5F84 #841B5F
tetradic
#5F841B #1B8474 #401B84 #841B2A
square
#5F841B #1B8474 #401B84 #841B2A
split-complementary
#5F841B #1B2A84 #741B84
monochromatic
#161E06 #3A5111 #5F841B #84B725 #A3D841

Accessibility & contrast

On white

4.37
#5F841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5F841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F841B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F841B#FFFFFF#000000##000000
##5F841B1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#637E70
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f841b;
/* rgb */ color: rgb(95, 132, 27);
/* oklch */ color: oklch(56.5% 0.135 127.7);
Tailwind
colors: {
  custom: {
    50: '#90a861',
    500: '#5f841b',
    950: '#000000',
  },
}
SCSS
$custom: #5f841b;
$custom-light: #90a861;
$custom-dark: #000000;
JSON
{
  "hex": "#5f841b",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 81.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56531,
    "c": 0.13535,
    "h": 127.7
  },
  "luminance": 0.19015
}

Semantic roles & 50–950 ramp

primary
#5F841B
secondary
#6C43B7
accent
#3FE97B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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