#5B7B16#5B7B16

#5B7B16 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.128 H 126.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5B7B16
RGBrgb(91, 123, 22)
HSLhsl(79, 70%, 28%)
HSVhsv(79, 82%, 48%)
CMYKcmyk(26%, 0%, 82.1%, 51.8%)
CIE-LABlab(47.56, -26.35, 47.06)
CIE-LCHlch(47.56, 53.94, 119.24°)
OKLaboklab(53.9% -0.0763 0.1034)
OKLCHoklch(53.9% 0.128 126.4)
XYZxyz(11.5422, 16.4478, 3.3255)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7B16 #36167B
analogous
#7B6816 #5B7B16 #287B16
triadic
#5B7B16 #165B7B #7B165B
tetradic
#5B7B16 #167B68 #36167B #7B1628
square
#5B7B16 #167B68 #36167B #7B1628
split-complementary
#5B7B16 #16287B #68167B
monochromatic
#131A05 #35470D #5B7B16 #81AF1F #A5DA31

Accessibility & contrast

On white

4.90
#5B7B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5B7B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7B16
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7B16#FFFFFF#000000##FFFFFF
##5B7B161.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7E7021
Tritanopia (blue-blind)
#5F7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b7b16;
/* rgb */ color: rgb(91, 123, 22);
/* oklch */ color: oklch(53.9% 0.128 126.4);
Tailwind
colors: {
  custom: {
    50: '#8da15d',
    500: '#5b7b16',
    950: '#000000',
  },
}
SCSS
$custom: #5b7b16;
$custom-light: #8da15d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7b16",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 79.01,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53899,
    "c": 0.12849,
    "h": 126.4
  },
  "luminance": 0.16448
}

Semantic roles & 50–950 ramp

primary
#5B7B16
secondary
#613DB0
accent
#3BEC73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0F05
muted
#7D7E79

Preview Lab

Preview with #5B7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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