#5B842E#5B842E

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

Color values

HEX#5B842E
RGBrgb(91, 132, 46)
HSLhsl(89, 48%, 35%)
HSVhsv(89, 65%, 52%)
CMYKcmyk(31.1%, 0%, 65.2%, 48.2%)
CIE-LABlab(50.60, -29.06, 40.67)
CIE-LCHlch(50.60, 49.99, 125.54°)
OKLaboklab(56.42% -0.0817 0.0937)
OKLCHoklch(56.42% 0.124 131.1)
XYZxyz(13.0587, 18.9235, 5.5488)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B842E #572E84
analogous
#84822E #5B842E #30842E
triadic
#5B842E #2E5B84 #842E5B
tetradic
#5B842E #2E8482 #572E84 #842E30
square
#5B842E #2E8482 #572E84 #842E30
split-complementary
#5B842E #2E3084 #822E84
monochromatic
#1C290E #3C571E #5B842E #7AB13E #99C964

Accessibility & contrast

On white

4.39
#5B842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B842E#FFFFFF#000000##000000
##5B842E1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A24
Deuteranopia (green-blind)
#847735
Tritanopia (blue-blind)
#5D7F72
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5b842e;
/* rgb */ color: rgb(91, 132, 46);
/* oklch */ color: oklch(56.4% 0.124 131.1);
Tailwind
colors: {
  custom: {
    50: '#8ca86b',
    500: '#5b842e',
    950: '#000000',
  },
}
SCSS
$custom: #5b842e;
$custom-light: #8ca86b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b842e",
  "rgb": {
    "r": 91,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 88.605,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56424,
    "c": 0.12429,
    "h": 131.1
  },
  "luminance": 0.18924
}

Semantic roles & 50–950 ramp

primary
#5B842E
secondary
#855EB0
accent
#50D891
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5B842E

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

Preview Lab → · Contrast checker → · Palette generator →

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