#5B7616#5B7616

#5B7616 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.122 H 124.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5B7616
RGBrgb(91, 118, 22)
HSLhsl(77, 69%, 27%)
HSVhsv(77, 81%, 46%)
CMYKcmyk(22.9%, 0%, 81.4%, 53.7%)
CIE-LABlab(45.96, -23.87, 45.60)
CIE-LCHlch(45.96, 51.47, 117.63°)
OKLaboklab(52.6% -0.0696 0.1003)
OKLCHoklch(52.6% 0.122 124.7)
XYZxyz(10.9377, 15.2388, 3.1240)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7616 #311676
analogous
#766116 #5B7616 #2B7616
triadic
#5B7616 #165B76 #76165B
tetradic
#5B7616 #167661 #311676 #76162B
square
#5B7616 #167661 #311676 #76162B
split-complementary
#5B7616 #162B76 #611676
monochromatic
#141A05 #33420C #5B7616 #83AA20 #A8D82E

Accessibility & contrast

On white

5.19
#5B7616 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B7616 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7616
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7616#FFFFFF#000000##FFFFFF
##5B76161.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#796D20
Tritanopia (blue-blind)
#607064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7616;
/* rgb */ color: rgb(91, 118, 22);
/* oklch */ color: oklch(52.6% 0.122 124.7);
Tailwind
colors: {
  custom: {
    50: '#8d9d5c',
    500: '#5b7616',
    950: '#000000',
  },
}
SCSS
$custom: #5b7616;
$custom-light: #8d9d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7616",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 22
  },
  "hsl": {
    "h": 76.875,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.12205,
    "h": 124.7
  },
  "luminance": 0.15239
}

Semantic roles & 50–950 ramp

primary
#5B7616
secondary
#5C3CAC
accent
#3CEB6E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7616

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

Preview Lab → · Contrast checker → · Palette generator →

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