#5B7416#5B7416

#5B7416 is a mid, moderate yellow-green. Relative luminance 0.148; OKLCH L 52.1% C 0.119 H 124.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5B7416
RGBrgb(91, 116, 22)
HSLhsl(76, 68%, 27%)
HSVhsv(76, 81%, 45%)
CMYKcmyk(21.6%, 0%, 81%, 54.5%)
CIE-LABlab(45.32, -22.85, 45.01)
CIE-LCHlch(45.32, 50.48, 116.92°)
OKLaboklab(52.09% -0.0668 0.099)
OKLCHoklch(52.09% 0.119 124)
XYZxyz(10.7047, 14.7728, 3.0464)
Luminance0.1477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7416 #2F1674
analogous
#745E16 #5B7416 #2C7416
triadic
#5B7416 #165B74 #74165B
tetradic
#5B7416 #16745E #2F1674 #74162C
square
#5B7416 #16745E #2F1674 #74162C
split-complementary
#5B7416 #162C74 #5E1674
monochromatic
#141A05 #33410C #5B7416 #83A720 #AAD72D

Accessibility & contrast

On white

5.31
#5B7416 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5B7416 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7416
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7416#FFFFFF#000000##FFFFFF
##5B74161.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#606E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7416;
/* rgb */ color: rgb(91, 116, 22);
/* oklch */ color: oklch(52.1% 0.119 124.0);
Tailwind
colors: {
  custom: {
    50: '#8d9c5c',
    500: '#5b7416',
    950: '#000000',
  },
}
SCSS
$custom: #5b7416;
$custom-light: #8d9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7416",
  "rgb": {
    "r": 91,
    "g": 116,
    "b": 22
  },
  "hsl": {
    "h": 75.957,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.11946,
    "h": 124
  },
  "luminance": 0.14773
}

Semantic roles & 50–950 ramp

primary
#5B7416
secondary
#593CAA
accent
#3DEB6B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7416

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

Preview Lab → · Contrast checker → · Palette generator →

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