#5B7112#5B7112

#5B7112 is a mid, moderate yellow-green. Relative luminance 0.141; OKLCH L 51.3% C 0.118 H 122.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5B7112
RGBrgb(91, 113, 18)
HSLhsl(74, 73%, 26%)
HSVhsv(74, 84%, 44%)
CMYKcmyk(19.5%, 0%, 84.1%, 55.7%)
CIE-LABlab(44.34, -21.50, 45.40)
CIE-LCHlch(44.34, 50.23, 115.35°)
OKLaboklab(51.29% -0.0634 0.0991)
OKLCHoklch(51.29% 0.118 122.6)
XYZxyz(10.3289, 14.0780, 2.7453)
Luminance0.1408 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7112 #281271
analogous
#715712 #5B7112 #2B7112
triadic
#5B7112 #125B71 #71125B
tetradic
#5B7112 #127157 #281271 #71122B
square
#5B7112 #127157 #281271 #71122B
split-complementary
#5B7112 #122B71 #571271
monochromatic
#151A04 #303C0A #5B7112 #86A61A #B0DB23

Accessibility & contrast

On white

5.50
#5B7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5B7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7112
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7112#FFFFFF#000000##FFFFFF
##5B71121.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#75691C
Tritanopia (blue-blind)
#606B60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b7112;
/* rgb */ color: rgb(91, 113, 18);
/* oklch */ color: oklch(51.3% 0.118 122.6);
Tailwind
colors: {
  custom: {
    50: '#8d995a',
    500: '#5b7112',
    950: '#000000',
  },
}
SCSS
$custom: #5b7112;
$custom-light: #8d995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7112",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 73.895,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.11769,
    "h": 122.6
  },
  "luminance": 0.14078
}

Semantic roles & 50–950 ramp

primary
#5B7112
secondary
#5137A8
accent
#39EF63
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7112

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

Preview Lab → · Contrast checker → · Palette generator →

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