#5B8018#5B8018

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

Color values

HEX#5B8018
RGBrgb(91, 128, 24)
HSLhsl(81, 68%, 30%)
HSVhsv(81, 81%, 50%)
CMYKcmyk(28.9%, 0%, 81.3%, 49.8%)
CIE-LABlab(49.16, -28.67, 47.91)
CIE-LCHlch(49.16, 55.83, 120.90°)
OKLaboklab(55.21% -0.0825 0.1055)
OKLCHoklch(55.21% 0.134 128)
XYZxyz(12.1984, 17.7281, 3.6432)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8018 #3D1880
analogous
#807118 #5B8018 #278018
triadic
#5B8018 #185B80 #80185B
tetradic
#5B8018 #188071 #3D1880 #801827
square
#5B8018 #188071 #3D1880 #801827
split-complementary
#5B8018 #182780 #711880
monochromatic
#121A05 #364C0E #5B8018 #80B422 #A0DA39

Accessibility & contrast

On white

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

On black

4.55
#5B8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B8018#FFFFFF#000000##FFFFFF
##5B80181.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b8018;
/* rgb */ color: rgb(91, 128, 24);
/* oklch */ color: oklch(55.2% 0.134 128.0);
Tailwind
colors: {
  custom: {
    50: '#8da55f',
    500: '#5b8018',
    950: '#000000',
  },
}
SCSS
$custom: #5b8018;
$custom-light: #8da55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8018",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 81.346,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55209,
    "c": 0.13391,
    "h": 128
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#5B8018
secondary
#6940B4
accent
#3DEB7B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B8018

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

Preview Lab → · Contrast checker → · Palette generator →

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