#5F891F#5F891F

#5F891F is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.8% C 0.140 H 129.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5F891F
RGBrgb(95, 137, 31)
HSLhsl(84, 63%, 33%)
HSVhsv(84, 77%, 54%)
CMYKcmyk(30.7%, 0%, 77.4%, 46.3%)
CIE-LABlab(52.31, -30.94, 48.61)
CIE-LCHlch(52.31, 57.62, 122.48°)
OKLaboklab(57.85% -0.0883 0.108)
OKLCHoklch(57.85% 0.14 129.3)
XYZxyz(13.9123, 20.4227, 4.5050)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F891F #491F89
analogous
#897E1F #5F891F #2A891F
triadic
#5F891F #1F5F89 #891F5F
tetradic
#5F891F #1F897E #491F89 #891F2A
square
#5F891F #1F897E #491F89 #891F2A
split-complementary
#5F891F #1F2A89 #7E1F89
monochromatic
#1A2508 #3C5714 #5F891F #82BB2A #A0D64C

Accessibility & contrast

On white

4.13
#5F891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5F891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F891F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F891F#FFFFFF#000000##000000
##5F891F1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#628375
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f891f;
/* rgb */ color: rgb(95, 137, 31);
/* oklch */ color: oklch(57.8% 0.140 129.3);
Tailwind
colors: {
  custom: {
    50: '#90ab63',
    500: '#5f891f',
    950: '#000000',
  },
}
SCSS
$custom: #5f891f;
$custom-light: #90ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f891f",
  "rgb": {
    "r": 95,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 83.774,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57845,
    "c": 0.13956,
    "h": 129.3
  },
  "luminance": 0.20423
}

Semantic roles & 50–950 ramp

primary
#5F891F
secondary
#764BB9
accent
#42E683
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F891F

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

Preview Lab → · Contrast checker → · Palette generator →

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