#5B7828#5B7828

#5B7828 is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.3% C 0.112 H 126.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5B7828
RGBrgb(91, 120, 40)
HSLhsl(82, 50%, 31%)
HSVhsv(82, 67%, 47%)
CMYKcmyk(24.2%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.72, -23.68, 39.22)
CIE-LCHlch(46.72, 45.81, 121.13°)
OKLaboklab(53.26% -0.0674 0.0898)
OKLCHoklch(53.26% 0.112 126.9)
XYZxyz(11.4139, 15.8101, 4.4574)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7828 #452878
analogous
#786D28 #5B7828 #337828
triadic
#5B7828 #285B78 #78285B
tetradic
#5B7828 #28786D #452878 #782833
square
#5B7828 #28786D #452878 #782833
split-complementary
#5B7828 #283378 #6D2878
monochromatic
#151C09 #384A19 #5B7828 #7EA637 #9DC654

Accessibility & contrast

On white

5.05
#5B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5B7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7828
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7828#FFFFFF#000000##FFFFFF
##5B78281.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#7A6E2E
Tritanopia (blue-blind)
#5E7267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7828;
/* rgb */ color: rgb(91, 120, 40);
/* oklch */ color: oklch(53.3% 0.112 126.9);
Tailwind
colors: {
  custom: {
    50: '#8c9f66',
    500: '#5b7828',
    950: '#000000',
  },
}
SCSS
$custom: #5b7828;
$custom-light: #8c9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7828",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 81.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53264,
    "c": 0.11231,
    "h": 126.9
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#5B7828
secondary
#7252AA
accent
#4EDA81
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7828

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

Preview Lab → · Contrast checker → · Palette generator →

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