#5B7216#5B7216

#5B7216 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.6% C 0.117 H 123.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5B7216
RGBrgb(91, 114, 22)
HSLhsl(75, 68%, 27%)
HSVhsv(75, 81%, 45%)
CMYKcmyk(20.2%, 0%, 80.7%, 55.3%)
CIE-LABlab(44.68, -21.83, 44.42)
CIE-LCHlch(44.68, 49.50, 116.17°)
OKLaboklab(51.57% -0.064 0.0978)
OKLCHoklch(51.57% 0.117 123.2)
XYZxyz(10.4767, 14.3166, 2.9703)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7216 #2D1672
analogous
#725B16 #5B7216 #2D7216
triadic
#5B7216 #165B72 #72165B
tetradic
#5B7216 #16725B #2D1672 #72162D
square
#5B7216 #16725B #2D1672 #72162D
split-complementary
#5B7216 #162D72 #5B1672
monochromatic
#141A05 #323F0C #5B7216 #84A520 #ACD62C

Accessibility & contrast

On white

5.44
#5B7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5B7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7216
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7216#FFFFFF#000000##FFFFFF
##5B72161.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#766A1F
Tritanopia (blue-blind)
#606C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7216;
/* rgb */ color: rgb(91, 114, 22);
/* oklch */ color: oklch(51.6% 0.117 123.2);
Tailwind
colors: {
  custom: {
    50: '#8c9a5c',
    500: '#5b7216',
    950: '#000000',
  },
}
SCSS
$custom: #5b7216;
$custom-light: #8c9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7216",
  "rgb": {
    "r": 91,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 75,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51572,
    "c": 0.11689,
    "h": 123.2
  },
  "luminance": 0.14317
}

Semantic roles & 50–950 ramp

primary
#5B7216
secondary
#573CA8
accent
#3DEB69
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7216

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

Preview Lab → · Contrast checker → · Palette generator →

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