#5B7816#5B7816

#5B7816 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.125 H 125.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B7816
RGBrgb(91, 120, 22)
HSLhsl(78, 69%, 28%)
HSVhsv(78, 82%, 47%)
CMYKcmyk(24.2%, 0%, 81.7%, 52.9%)
CIE-LABlab(46.60, -24.87, 46.19)
CIE-LCHlch(46.60, 52.45, 118.30°)
OKLaboklab(53.12% -0.0723 0.1015)
OKLCHoklch(53.12% 0.125 125.5)
XYZxyz(11.1758, 15.7149, 3.2034)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7816 #331678
analogous
#786416 #5B7816 #2A7816
triadic
#5B7816 #165B78 #78165B
tetradic
#5B7816 #167864 #331678 #78162A
square
#5B7816 #167864 #331678 #78162A
split-complementary
#5B7816 #162A78 #641678
monochromatic
#141A05 #34440D #5B7816 #82AC1F #A7D92F

Accessibility & contrast

On white

5.07
#5B7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7816
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7816#FFFFFF#000000##FFFFFF
##5B78161.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7816;
/* rgb */ color: rgb(91, 120, 22);
/* oklch */ color: oklch(53.1% 0.125 125.5);
Tailwind
colors: {
  custom: {
    50: '#8d9f5d',
    500: '#5b7816',
    950: '#000000',
  },
}
SCSS
$custom: #5b7816;
$custom-light: #8d9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7816",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 77.755,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53122,
    "c": 0.12464,
    "h": 125.5
  },
  "luminance": 0.15715
}

Semantic roles & 50–950 ramp

primary
#5B7816
secondary
#5E3CAD
accent
#3CEC70
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7816

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

Preview Lab → · Contrast checker → · Palette generator →

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