#5B7F16#5B7F16

#5B7F16 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.134 H 127.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5B7F16
RGBrgb(91, 127, 22)
HSLhsl(81, 70%, 29%)
HSVhsv(81, 83%, 50%)
CMYKcmyk(28.3%, 0%, 82.7%, 50.2%)
CIE-LABlab(48.84, -28.29, 48.23)
CIE-LCHlch(48.84, 55.91, 120.40°)
OKLaboklab(54.94% -0.0816 0.1058)
OKLCHoklch(54.94% 0.134 127.6)
XYZxyz(12.0486, 17.4605, 3.4943)
Luminance0.1746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7F16 #3A167F
analogous
#7F6F16 #5B7F16 #277F16
triadic
#5B7F16 #165B7F #7F165B
tetradic
#5B7F16 #167F6F #3A167F #7F1627
square
#5B7F16 #167F6F #3A167F #7F1627
split-complementary
#5B7F16 #16277F #6F167F
monochromatic
#131A05 #364B0D #5B7F16 #80B31F #A2DC34

Accessibility & contrast

On white

4.67
#5B7F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5B7F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7F16
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7F16#FFFFFF#000000##FFFFFF
##5B7F161.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#817322
Tritanopia (blue-blind)
#5F796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5b7f16;
/* rgb */ color: rgb(91, 127, 22);
/* oklch */ color: oklch(54.9% 0.134 127.6);
Tailwind
colors: {
  custom: {
    50: '#8da45e',
    500: '#5b7f16',
    950: '#000000',
  },
}
SCSS
$custom: #5b7f16;
$custom-light: #8da45e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7f16",
  "rgb": {
    "r": 91,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 80.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54938,
    "c": 0.13363,
    "h": 127.6
  },
  "luminance": 0.17461
}

Semantic roles & 50–950 ramp

primary
#5B7F16
secondary
#663DB4
accent
#3BED78
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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