#5D841F#5D841F

#5D841F is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.4% C 0.134 H 128.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5D841F
RGBrgb(93, 132, 31)
HSLhsl(83, 62%, 32%)
HSVhsv(83, 77%, 52%)
CMYKcmyk(29.5%, 0%, 76.5%, 48.2%)
CIE-LABlab(50.60, -29.38, 46.92)
CIE-LCHlch(50.60, 55.36, 122.06°)
OKLaboklab(56.42% -0.084 0.1045)
OKLCHoklch(56.42% 0.134 128.8)
XYZxyz(13.0128, 18.9283, 4.2640)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D841F #461F84
analogous
#84791F #5D841F #2B841F
triadic
#5D841F #1F5D84 #841F5D
tetradic
#5D841F #1F8479 #461F84 #841F2B
square
#5D841F #1F8479 #461F84 #841F2B
split-complementary
#5D841F #1F2B84 #791F84
monochromatic
#172108 #3A5213 #5D841F #80B62B #9FD449

Accessibility & contrast

On white

4.39
#5D841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5D841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D841F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D841F#FFFFFF#000000##000000
##5D841F1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0A
Deuteranopia (green-blind)
#857829
Tritanopia (blue-blind)
#607E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5d841f;
/* rgb */ color: rgb(93, 132, 31);
/* oklch */ color: oklch(56.4% 0.134 128.8);
Tailwind
colors: {
  custom: {
    50: '#8fa863',
    500: '#5d841f',
    950: '#000000',
  },
}
SCSS
$custom: #5d841f;
$custom-light: #8fa863;
$custom-dark: #000000;
JSON
{
  "hex": "#5d841f",
  "rgb": {
    "r": 93,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 83.168,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56424,
    "c": 0.1341,
    "h": 128.8
  },
  "luminance": 0.18929
}

Semantic roles & 50–950 ramp

primary
#5D841F
secondary
#7348B7
accent
#43E581
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5D841F

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

Preview Lab → · Contrast checker → · Palette generator →

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