#5C842F#5C842F

#5C842F is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.123 H 130.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5C842F
RGBrgb(92, 132, 47)
HSLhsl(88, 47%, 35%)
HSVhsv(88, 64%, 52%)
CMYKcmyk(30.3%, 0%, 64.4%, 48.2%)
CIE-LABlab(50.67, -28.57, 40.31)
CIE-LCHlch(50.67, 49.41, 125.33°)
OKLaboklab(56.5% -0.0803 0.093)
OKLCHoklch(56.5% 0.123 130.8)
XYZxyz(13.1779, 18.9827, 5.6585)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C842F #572F84
analogous
#84812F #5C842F #32842F
triadic
#5C842F #2F5C84 #842F5C
tetradic
#5C842F #2F8481 #572F84 #842F32
square
#5C842F #2F8481 #572F84 #842F32
split-complementary
#5C842F #2F3284 #812F84
monochromatic
#1D2A0F #3D571F #5C842F #7BB13F #9AC865

Accessibility & contrast

On white

4.38
#5C842F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5C842F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C842F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C842F#FFFFFF#000000##000000
##5C842F1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B25
Deuteranopia (green-blind)
#847835
Tritanopia (blue-blind)
#5E7F72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5c842f;
/* rgb */ color: rgb(92, 132, 47);
/* oklch */ color: oklch(56.5% 0.123 130.8);
Tailwind
colors: {
  custom: {
    50: '#8da86b',
    500: '#5c842f',
    950: '#000000',
  },
}
SCSS
$custom: #5c842f;
$custom-light: #8da86b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c842f",
  "rgb": {
    "r": 92,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 88.235,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56499,
    "c": 0.1229,
    "h": 130.8
  },
  "luminance": 0.18983
}

Semantic roles & 50–950 ramp

primary
#5C842F
secondary
#8560AF
accent
#51D790
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5C842F

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

Preview Lab → · Contrast checker → · Palette generator →

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