#5B802F#5B802F

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

Color values

HEX#5B802F
RGBrgb(91, 128, 47)
HSLhsl(87, 46%, 34%)
HSVhsv(87, 63%, 50%)
CMYKcmyk(28.9%, 0%, 63.3%, 49.8%)
CIE-LABlab(49.33, -27.03, 38.82)
CIE-LCHlch(49.33, 47.30, 124.85°)
OKLaboklab(55.4% -0.076 0.0899)
OKLCHoklch(55.4% 0.118 130.2)
XYZxyz(12.5465, 17.8674, 5.4765)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B802F #542F80
analogous
#807D2F #5B802F #33802F
triadic
#5B802F #2F5B80 #802F5B
tetradic
#5B802F #2F807D #542F80 #802F33
square
#5B802F #2F807D #542F80 #802F33
split-complementary
#5B802F #2F3380 #7D2F80
monochromatic
#1B260E #3B531F #5B802F #7BAD3F #99C663

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B802F#FFFFFF#000000##FFFFFF
##5B802F1.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)
#867726
Deuteranopia (green-blind)
#817435
Tritanopia (blue-blind)
#5D7B6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b802f;
/* rgb */ color: rgb(91, 128, 47);
/* oklch */ color: oklch(55.4% 0.118 130.2);
Tailwind
colors: {
  custom: {
    50: '#8ca56b',
    500: '#5b802f',
    950: '#000000',
  },
}
SCSS
$custom: #5b802f;
$custom-light: #8ca56b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b802f",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 87.407,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55402,
    "c": 0.11772,
    "h": 130.2
  },
  "luminance": 0.17868
}

Semantic roles & 50–950 ramp

primary
#5B802F
secondary
#825EAD
accent
#52D68E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5B802F

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

Preview Lab → · Contrast checker → · Palette generator →

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