#5C851B#5C851B

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

Color values

HEX#5C851B
RGBrgb(92, 133, 27)
HSLhsl(83, 66%, 31%)
HSVhsv(83, 80%, 52%)
CMYKcmyk(30.8%, 0%, 79.7%, 47.8%)
CIE-LABlab(50.84, -30.49, 48.51)
CIE-LCHlch(50.84, 57.29, 122.15°)
OKLaboklab(56.59% -0.0872 0.1073)
OKLCHoklch(56.59% 0.138 129.1)
XYZxyz(12.9990, 19.1291, 4.0441)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C851B #441B85
analogous
#85791B #5C851B #27851B
triadic
#5C851B #1B5C85 #851B5C
tetradic
#5C851B #1B8579 #441B85 #851B27
square
#5C851B #1B8579 #441B85 #851B27
split-complementary
#5C851B #1B2785 #791B85
monochromatic
#161F06 #395211 #5C851B #7FB825 #9ED942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C851B#FFFFFF#000000##000000
##5C851B1.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)
#8C7B00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#5F7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5c851b;
/* rgb */ color: rgb(92, 133, 27);
/* oklch */ color: oklch(56.6% 0.138 129.1);
Tailwind
colors: {
  custom: {
    50: '#8ea861',
    500: '#5c851b',
    950: '#000000',
  },
}
SCSS
$custom: #5c851b;
$custom-light: #8ea861;
$custom-dark: #000000;
JSON
{
  "hex": "#5c851b",
  "rgb": {
    "r": 92,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 83.208,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56591,
    "c": 0.13824,
    "h": 129.1
  },
  "luminance": 0.1913
}

Semantic roles & 50–950 ramp

primary
#5C851B
secondary
#7144B8
accent
#3FE981
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5C851B

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

Preview Lab → · Contrast checker → · Palette generator →

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