#5B7928#5B7928

#5B7928 is a mid, moderate yellow-green. Relative luminance 0.161; OKLCH L 53.5% C 0.114 H 127.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5B7928
RGBrgb(91, 121, 40)
HSLhsl(82, 50%, 32%)
HSVhsv(82, 67%, 47%)
CMYKcmyk(24.8%, 0%, 66.9%, 52.5%)
CIE-LABlab(47.04, -24.19, 39.56)
CIE-LCHlch(47.04, 46.37, 121.44°)
OKLaboklab(53.52% -0.0688 0.0905)
OKLCHoklch(53.52% 0.114 127.2)
XYZxyz(11.5348, 16.0519, 4.4977)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7928 #462879
analogous
#796F28 #5B7928 #337928
triadic
#5B7928 #285B79 #79285B
tetradic
#5B7928 #28796F #462879 #792833
square
#5B7928 #28796F #462879 #792833
split-complementary
#5B7928 #283379 #6F2879
monochromatic
#161D0A #384B19 #5B7928 #7EA737 #9CC755

Accessibility & contrast

On white

4.99
#5B7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7928
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7928#FFFFFF#000000##FFFFFF
##5B79281.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711E
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#5E7368
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b7928;
/* rgb */ color: rgb(91, 121, 40);
/* oklch */ color: oklch(53.5% 0.114 127.2);
Tailwind
colors: {
  custom: {
    50: '#8ca066',
    500: '#5b7928',
    950: '#000000',
  },
}
SCSS
$custom: #5b7928;
$custom-light: #8ca066;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7928",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 82.222,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53522,
    "c": 0.11372,
    "h": 127.2
  },
  "luminance": 0.16052
}

Semantic roles & 50–950 ramp

primary
#5B7928
secondary
#7352AB
accent
#4EDA82
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7928

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

Preview Lab → · Contrast checker → · Palette generator →

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