#5C851F#5C851F

#5C851F is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.6% C 0.136 H 129.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5C851F
RGBrgb(92, 133, 31)
HSLhsl(84, 62%, 32%)
HSVhsv(84, 77%, 52%)
CMYKcmyk(30.8%, 0%, 76.7%, 47.8%)
CIE-LABlab(50.86, -30.26, 47.14)
CIE-LCHlch(50.86, 56.02, 122.69°)
OKLaboklab(56.62% -0.0863 0.1051)
OKLCHoklch(56.62% 0.136 129.4)
XYZxyz(13.0484, 19.1489, 4.3047)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C851F #481F85
analogous
#857B1F #5C851F #29851F
triadic
#5C851F #1F5C85 #851F5C
tetradic
#5C851F #1F857B #481F85 #851F29
square
#5C851F #1F857B #481F85 #851F29
split-complementary
#5C851F #1F2985 #7B1F85
monochromatic
#172208 #3A5313 #5C851F #7EB72B #9DD54A

Accessibility & contrast

On white

4.35
#5C851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5C851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C851F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C851F#FFFFFF#000000##000000
##5C851F1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B09
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#5F7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5c851f;
/* rgb */ color: rgb(92, 133, 31);
/* oklch */ color: oklch(56.6% 0.136 129.4);
Tailwind
colors: {
  custom: {
    50: '#8ea863',
    500: '#5c851f',
    950: '#000000',
  },
}
SCSS
$custom: #5c851f;
$custom-light: #8ea863;
$custom-dark: #000000;
JSON
{
  "hex": "#5c851f",
  "rgb": {
    "r": 92,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 84.118,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56617,
    "c": 0.13595,
    "h": 129.4
  },
  "luminance": 0.19149
}

Semantic roles & 50–950 ramp

primary
#5C851F
secondary
#7549B7
accent
#43E584
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5C851F

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

Preview Lab → · Contrast checker → · Palette generator →

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