#5B8015#5B8015

#5B8015 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.135 H 127.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5B8015
RGBrgb(91, 128, 21)
HSLhsl(81, 72%, 29%)
HSVhsv(81, 84%, 50%)
CMYKcmyk(28.9%, 0%, 83.6%, 49.8%)
CIE-LABlab(49.15, -28.82, 48.81)
CIE-LCHlch(49.15, 56.68, 120.56°)
OKLaboklab(55.19% -0.0831 0.1069)
OKLCHoklch(55.19% 0.135 127.8)
XYZxyz(12.1689, 17.7163, 3.4878)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8015 #3A1580
analogous
#807015 #5B8015 #258015
triadic
#5B8015 #155B80 #80155B
tetradic
#5B8015 #158070 #3A1580 #801525
square
#5B8015 #158070 #3A1580 #801525
split-complementary
#5B8015 #152580 #701580
monochromatic
#131A04 #364B0C #5B8015 #80B51E #A2DD32

Accessibility & contrast

On white

4.62
#5B8015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5B8015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B8015
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8015#FFFFFF#000000##FFFFFF
##5B80151.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#827421
Tritanopia (blue-blind)
#5F7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b8015;
/* rgb */ color: rgb(91, 128, 21);
/* oklch */ color: oklch(55.2% 0.135 127.8);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5b8015',
    950: '#000000',
  },
}
SCSS
$custom: #5b8015;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8015",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 80.748,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.13539,
    "h": 127.8
  },
  "luminance": 0.17717
}

Semantic roles & 50–950 ramp

primary
#5B8015
secondary
#663CB5
accent
#39EF78
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8015

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

Preview Lab → · Contrast checker → · Palette generator →

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