#5F841F#5F841F

#5F841F is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.6% C 0.133 H 128.0°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5F841F
RGBrgb(95, 132, 31)
HSLhsl(82, 62%, 32%)
HSVhsv(82, 77%, 52%)
CMYKcmyk(28%, 0%, 76.5%, 48.2%)
CIE-LABlab(50.73, -28.57, 47.08)
CIE-LCHlch(50.73, 55.07, 121.25°)
OKLaboklab(56.56% -0.0819 0.1048)
OKLCHoklch(56.56% 0.133 128)
XYZxyz(13.2179, 19.0341, 4.2736)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F841F #441F84
analogous
#84771F #5F841F #2D841F
triadic
#5F841F #1F5F84 #841F5F
tetradic
#5F841F #1F8477 #441F84 #841F2D
square
#5F841F #1F8477 #441F84 #841F2D
split-complementary
#5F841F #1F2D84 #771F84
monochromatic
#182108 #3B5213 #5F841F #83B62B #A1D449

Accessibility & contrast

On white

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

On black

4.81
#5F841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F841F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F841F#FFFFFF#000000##000000
##5F841F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#637E71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f841f;
/* rgb */ color: rgb(95, 132, 31);
/* oklch */ color: oklch(56.6% 0.133 128.0);
Tailwind
colors: {
  custom: {
    50: '#90a863',
    500: '#5f841f',
    950: '#000000',
  },
}
SCSS
$custom: #5f841f;
$custom-light: #90a863;
$custom-dark: #000000;
JSON
{
  "hex": "#5f841f",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 81.98,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56557,
    "c": 0.13304,
    "h": 128
  },
  "luminance": 0.19034
}

Semantic roles & 50–950 ramp

primary
#5F841F
secondary
#7148B7
accent
#43E57E
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F841F

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

Preview Lab → · Contrast checker → · Palette generator →

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