#5C841F#5C841F

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

Color values

HEX#5C841F
RGBrgb(92, 132, 31)
HSLhsl(84, 62%, 32%)
HSVhsv(84, 77%, 52%)
CMYKcmyk(30.3%, 0%, 76.5%, 48.2%)
CIE-LABlab(50.54, -29.79, 46.84)
CIE-LCHlch(50.54, 55.50, 122.46°)
OKLaboklab(56.36% -0.085 0.1044)
OKLCHoklch(56.36% 0.135 129.2)
XYZxyz(12.9122, 18.8764, 4.2593)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C841F #471F84
analogous
#847A1F #5C841F #2A841F
triadic
#5C841F #1F5C84 #841F5C
tetradic
#5C841F #1F847A #471F84 #841F2A
square
#5C841F #1F847A #471F84 #841F2A
split-complementary
#5C841F #1F2A84 #7A1F84
monochromatic
#172108 #395213 #5C841F #7FB62B #9DD449

Accessibility & contrast

On white

4.40
#5C841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5C841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C841F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C841F#FFFFFF#000000##000000
##5C841F1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0A
Deuteranopia (green-blind)
#857729
Tritanopia (blue-blind)
#5F7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5c841f;
/* rgb */ color: rgb(92, 132, 31);
/* oklch */ color: oklch(56.4% 0.135 129.2);
Tailwind
colors: {
  custom: {
    50: '#8ea863',
    500: '#5c841f',
    950: '#000000',
  },
}
SCSS
$custom: #5c841f;
$custom-light: #8ea863;
$custom-dark: #000000;
JSON
{
  "hex": "#5c841f",
  "rgb": {
    "r": 92,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 83.762,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56358,
    "c": 0.13464,
    "h": 129.2
  },
  "luminance": 0.18877
}

Semantic roles & 50–950 ramp

primary
#5C841F
secondary
#7448B7
accent
#43E583
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5C841F

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

Preview Lab → · Contrast checker → · Palette generator →

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