#5B8618#5B8618

#5B8618 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.142 H 129.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5B8618
RGBrgb(91, 134, 24)
HSLhsl(83, 70%, 31%)
HSVhsv(83, 82%, 53%)
CMYKcmyk(32.1%, 0%, 82.1%, 47.5%)
CIE-LABlab(51.08, -31.51, 49.67)
CIE-LCHlch(51.08, 58.82, 122.39°)
OKLaboklab(56.77% -0.0901 0.1092)
OKLCHoklch(56.77% 0.142 129.5)
XYZxyz(13.0043, 19.3399, 3.9118)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8618 #431886
analogous
#867A18 #5B8618 #248618
triadic
#5B8618 #185B86 #86185B
tetradic
#5B8618 #18867A #431886 #861824
square
#5B8618 #18867A #431886 #861824
split-complementary
#5B8618 #182486 #7A1886
monochromatic
#151E05 #38520F #5B8618 #7EBA21 #9EDC3C

Accessibility & contrast

On white

4.31
#5B8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5B8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8618
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8618#FFFFFF#000000##000000
##5B86181.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#5E8072
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5b8618;
/* rgb */ color: rgb(91, 134, 24);
/* oklch */ color: oklch(56.8% 0.142 129.5);
Tailwind
colors: {
  custom: {
    50: '#8ea960',
    500: '#5b8618',
    950: '#000000',
  },
}
SCSS
$custom: #5b8618;
$custom-light: #8ea960;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8618",
  "rgb": {
    "r": 91,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 83.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5677,
    "c": 0.14161,
    "h": 129.5
  },
  "luminance": 0.1934
}

Semantic roles & 50–950 ramp

primary
#5B8618
secondary
#7040BA
accent
#3BEC81
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D1005
muted
#7E7F79

Preview Lab

Preview with #5B8618

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

Preview Lab → · Contrast checker → · Palette generator →

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