#5B7516#5B7516

#5B7516 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.121 H 124.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5B7516
RGBrgb(91, 117, 22)
HSLhsl(76, 68%, 27%)
HSVhsv(76, 81%, 46%)
CMYKcmyk(22.2%, 0%, 81.2%, 54.1%)
CIE-LABlab(45.64, -23.36, 45.30)
CIE-LCHlch(45.64, 50.97, 117.28°)
OKLaboklab(52.35% -0.0682 0.0997)
OKLCHoklch(52.35% 0.121 124.4)
XYZxyz(10.8206, 15.0045, 3.0850)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7516 #301675
analogous
#756016 #5B7516 #2C7516
triadic
#5B7516 #165B75 #75165B
tetradic
#5B7516 #167560 #301675 #75162C
square
#5B7516 #167560 #301675 #75162C
split-complementary
#5B7516 #162C75 #601675
monochromatic
#141A05 #33410C #5B7516 #83A920 #A9D82E

Accessibility & contrast

On white

5.25
#5B7516 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5B7516 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7516
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7516#FFFFFF#000000##FFFFFF
##5B75161.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#606F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b7516;
/* rgb */ color: rgb(91, 117, 22);
/* oklch */ color: oklch(52.3% 0.121 124.4);
Tailwind
colors: {
  custom: {
    50: '#8d9c5c',
    500: '#5b7516',
    950: '#000000',
  },
}
SCSS
$custom: #5b7516;
$custom-light: #8d9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7516",
  "rgb": {
    "r": 91,
    "g": 117,
    "b": 22
  },
  "hsl": {
    "h": 76.421,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.52346,
    "c": 0.12076,
    "h": 124.4
  },
  "luminance": 0.15005
}

Semantic roles & 50–950 ramp

primary
#5B7516
secondary
#5A3CAB
accent
#3DEB6C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7516

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

Preview Lab → · Contrast checker → · Palette generator →

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