#5B7D16#5B7D16

#5B7D16 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.131 H 127.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D16
RGBrgb(91, 125, 22)
HSLhsl(80, 70%, 29%)
HSVhsv(80, 82%, 49%)
CMYKcmyk(27.2%, 0%, 82.4%, 51%)
CIE-LABlab(48.20, -27.32, 47.65)
CIE-LCHlch(48.20, 54.93, 119.83°)
OKLaboklab(54.42% -0.079 0.1046)
OKLCHoklch(54.42% 0.131 127)
XYZxyz(11.7929, 16.9491, 3.4091)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D16 #38167D
analogous
#7D6C16 #5B7D16 #287D16
triadic
#5B7D16 #165B7D #7D165B
tetradic
#5B7D16 #167D6C #38167D #7D1628
square
#5B7D16 #167D6C #38167D #7D1628
split-complementary
#5B7D16 #16287D #6C167D
monochromatic
#131A05 #35490D #5B7D16 #81B11F #A3DB32

Accessibility & contrast

On white

4.78
#5B7D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5B7D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D16
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D16#FFFFFF#000000##FFFFFF
##5B7D161.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d16;
/* rgb */ color: rgb(91, 125, 22);
/* oklch */ color: oklch(54.4% 0.131 127.0);
Tailwind
colors: {
  custom: {
    50: '#8da25d',
    500: '#5b7d16',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d16;
$custom-light: #8da25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d16",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 79.806,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54418,
    "c": 0.13106,
    "h": 127
  },
  "luminance": 0.16949
}

Semantic roles & 50–950 ramp

primary
#5B7D16
secondary
#643DB2
accent
#3BED76
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D16

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

Preview Lab → · Contrast checker → · Palette generator →

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