#5B802B#5B802B

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

Color values

HEX#5B802B
RGBrgb(91, 128, 43)
HSLhsl(86, 50%, 34%)
HSVhsv(86, 66%, 50%)
CMYKcmyk(28.9%, 0%, 66.4%, 49.8%)
CIE-LABlab(49.30, -27.39, 40.62)
CIE-LCHlch(49.30, 49.00, 123.99°)
OKLaboklab(55.36% -0.0774 0.0932)
OKLCHoklch(55.36% 0.121 129.7)
XYZxyz(12.4695, 17.8366, 5.0709)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B802B #502B80
analogous
#807A2B #5B802B #30802B
triadic
#5B802B #2B5B80 #802B5B
tetradic
#5B802B #2B807A #502B80 #802B30
square
#5B802B #2B807A #502B80 #802B30
split-complementary
#5B802B #2B3080 #7A2B80
monochromatic
#1A240C #3A521C #5B802B #7CAE3A #9AC95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B802B#FFFFFF#000000##FFFFFF
##5B802B1.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)
#867720
Deuteranopia (green-blind)
#817432
Tritanopia (blue-blind)
#5D7A6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b802b;
/* rgb */ color: rgb(91, 128, 43);
/* oklch */ color: oklch(55.4% 0.121 129.7);
Tailwind
colors: {
  custom: {
    50: '#8ca569',
    500: '#5b802b',
    950: '#000000',
  },
}
SCSS
$custom: #5b802b;
$custom-light: #8ca569;
$custom-dark: #000000;
JSON
{
  "hex": "#5b802b",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 86.118,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55359,
    "c": 0.12112,
    "h": 129.7
  },
  "luminance": 0.17837
}

Semantic roles & 50–950 ramp

primary
#5B802B
secondary
#7E58AE
accent
#4FD98B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B802B

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

Preview Lab → · Contrast checker → · Palette generator →

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