#5B8518#5B8518

#5B8518 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.5% C 0.140 H 129.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5B8518
RGBrgb(91, 133, 24)
HSLhsl(83, 69%, 31%)
HSVhsv(83, 82%, 52%)
CMYKcmyk(31.6%, 0%, 82%, 47.8%)
CIE-LABlab(50.76, -31.04, 49.37)
CIE-LCHlch(50.76, 58.32, 122.16°)
OKLaboklab(56.51% -0.0889 0.1086)
OKLCHoklch(56.51% 0.14 129.3)
XYZxyz(12.8668, 19.0648, 3.8659)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8518 #421885
analogous
#857818 #5B8518 #248518
triadic
#5B8518 #185B85 #85185B
tetradic
#5B8518 #188578 #421885 #851824
square
#5B8518 #188578 #421885 #851824
split-complementary
#5B8518 #182485 #781885
monochromatic
#141D05 #38510F #5B8518 #7EB921 #9EDC3C

Accessibility & contrast

On white

4.36
#5B8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5B8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8518
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8518#FFFFFF#000000##000000
##5B85181.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#5E7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5b8518;
/* rgb */ color: rgb(91, 133, 24);
/* oklch */ color: oklch(56.5% 0.140 129.3);
Tailwind
colors: {
  custom: {
    50: '#8ea860',
    500: '#5b8518',
    950: '#000000',
  },
}
SCSS
$custom: #5b8518;
$custom-light: #8ea860;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8518",
  "rgb": {
    "r": 91,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 83.119,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56509,
    "c": 0.14033,
    "h": 129.3
  },
  "luminance": 0.19065
}

Semantic roles & 50–950 ramp

primary
#5B8518
secondary
#6F40B9
accent
#3CEC80
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5B8518

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

Preview Lab → · Contrast checker → · Palette generator →

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