#5B802E#5B802E

#5B802E is a mid, moderate yellow-green. Relative luminance 0.179; OKLCH L 55.4% C 0.119 H 130.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5B802E
RGBrgb(91, 128, 46)
HSLhsl(87, 47%, 34%)
HSVhsv(87, 64%, 50%)
CMYKcmyk(28.9%, 0%, 64.1%, 49.8%)
CIE-LABlab(49.33, -27.12, 39.28)
CIE-LCHlch(49.33, 47.73, 124.63°)
OKLaboklab(55.39% -0.0763 0.0907)
OKLCHoklch(55.39% 0.119 130.1)
XYZxyz(12.5266, 17.8594, 5.3715)
Luminance0.1786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B802E #532E80
analogous
#807C2E #5B802E #32802E
triadic
#5B802E #2E5B80 #802E5B
tetradic
#5B802E #2E807C #532E80 #802E32
square
#5B802E #2E807C #532E80 #802E32
split-complementary
#5B802E #2E3280 #7C2E80
monochromatic
#1B260E #3B531E #5B802E #7BAD3E #99C762

Accessibility & contrast

On white

4.59
#5B802E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5B802E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B802E
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B802E#FFFFFF#000000##FFFFFF
##5B802E1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867724
Deuteranopia (green-blind)
#817434
Tritanopia (blue-blind)
#5D7B6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b802e;
/* rgb */ color: rgb(91, 128, 46);
/* oklch */ color: oklch(55.4% 0.119 130.1);
Tailwind
colors: {
  custom: {
    50: '#8ca56a',
    500: '#5b802e',
    950: '#000000',
  },
}
SCSS
$custom: #5b802e;
$custom-light: #8ca56a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b802e",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 87.073,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55391,
    "c": 0.11859,
    "h": 130.1
  },
  "luminance": 0.1786
}

Semantic roles & 50–950 ramp

primary
#5B802E
secondary
#815DAD
accent
#51D78D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5B802E

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

Preview Lab → · Contrast checker → · Palette generator →

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