#5C841C#5C841C

#5C841C is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.3% C 0.136 H 128.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5C841C
RGBrgb(92, 132, 28)
HSLhsl(83, 65%, 31%)
HSVhsv(83, 79%, 52%)
CMYKcmyk(30.3%, 0%, 78.8%, 48.2%)
CIE-LABlab(50.52, -29.96, 47.88)
CIE-LCHlch(50.52, 56.48, 122.04°)
OKLaboklab(56.34% -0.0857 0.1061)
OKLCHoklch(56.34% 0.136 128.9)
XYZxyz(12.8745, 18.8613, 4.0607)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C841C #441C84
analogous
#84781C #5C841C #28841C
triadic
#5C841C #1C5C84 #841C5C
tetradic
#5C841C #1C8478 #441C84 #841C28
square
#5C841C #1C8478 #441C84 #841C28
split-complementary
#5C841C #1C2884 #781C84
monochromatic
#161F07 #395211 #5C841C #7FB627 #9ED743

Accessibility & contrast

On white

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

On black

4.77
#5C841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C841C
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C841C#FFFFFF#000000##000000
##5C841C1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A02
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#5F7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5c841c;
/* rgb */ color: rgb(92, 132, 28);
/* oklch */ color: oklch(56.3% 0.136 128.9);
Tailwind
colors: {
  custom: {
    50: '#8ea861',
    500: '#5c841c',
    950: '#000000',
  },
}
SCSS
$custom: #5c841c;
$custom-light: #8ea861;
$custom-dark: #000000;
JSON
{
  "hex": "#5c841c",
  "rgb": {
    "r": 92,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 83.077,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56338,
    "c": 0.1364,
    "h": 128.9
  },
  "luminance": 0.18862
}

Semantic roles & 50–950 ramp

primary
#5C841C
secondary
#7145B7
accent
#40E880
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5C841C

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

Preview Lab → · Contrast checker → · Palette generator →

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