#5B802A#5B802A

#5B802A is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.122 H 129.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5B802A
RGBrgb(91, 128, 42)
HSLhsl(86, 51%, 33%)
HSVhsv(86, 67%, 50%)
CMYKcmyk(28.9%, 0%, 67.2%, 49.8%)
CIE-LABlab(49.29, -27.48, 41.06)
CIE-LCHlch(49.29, 49.41, 123.79°)
OKLaboklab(55.35% -0.0777 0.094)
OKLCHoklch(55.35% 0.122 129.6)
XYZxyz(12.4514, 17.8293, 4.9754)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B802A #4F2A80
analogous
#807A2A #5B802A #30802A
triadic
#5B802A #2A5B80 #802A5B
tetradic
#5B802A #2A807A #4F2A80 #802A30
square
#5B802A #2A807A #4F2A80 #802A30
split-complementary
#5B802A #2A3080 #7A2A80
monochromatic
#19240C #3A521B #5B802A #7CAE39 #9AC95B

Accessibility & contrast

On white

4.60
#5B802A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B802A
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B802A#FFFFFF#000000##FFFFFF
##5B802A1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771F
Deuteranopia (green-blind)
#817431
Tritanopia (blue-blind)
#5D7A6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b802a;
/* rgb */ color: rgb(91, 128, 42);
/* oklch */ color: oklch(55.3% 0.122 129.6);
Tailwind
colors: {
  custom: {
    50: '#8ca568',
    500: '#5b802a',
    950: '#000000',
  },
}
SCSS
$custom: #5b802a;
$custom-light: #8ca568;
$custom-dark: #000000;
JSON
{
  "hex": "#5b802a",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 85.814,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55349,
    "c": 0.12194,
    "h": 129.6
  },
  "luminance": 0.1783
}

Semantic roles & 50–950 ramp

primary
#5B802A
secondary
#7D57AF
accent
#4EDA8A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B802A

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

Preview Lab → · Contrast checker → · Palette generator →

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