#5B8E1C#5B8E1C

#5B8E1C is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 58.9% C 0.150 H 131.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B8E1C
RGBrgb(91, 142, 28)
HSLhsl(87, 67%, 33%)
HSVhsv(87, 80%, 56%)
CMYKcmyk(35.9%, 0%, 80.3%, 44.3%)
CIE-LABlab(53.66, -34.96, 50.80)
CIE-LCHlch(53.66, 61.66, 124.53°)
OKLaboklab(58.88% -0.0992 0.1123)
OKLCHoklch(58.88% 0.15 131.5)
XYZxyz(14.1969, 21.6534, 4.5299)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8E1C #4F1C8E
analogous
#8E881C #5B8E1C #228E1C
triadic
#5B8E1C #1C5B8E #8E1C5B
tetradic
#5B8E1C #1C8E88 #4F1C8E #8E1C22
square
#5B8E1C #1C8E88 #4F1C8E #8E1C22
split-complementary
#5B8E1C #1C228E #881C8E
monochromatic
#192808 #3A5B12 #5B8E1C #7CC126 #9ADB49

Accessibility & contrast

On white

3.94
#5B8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5B8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8E1C
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8E1C#FFFFFF#000000##000000
##5B8E1C1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948300
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#5D8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b8e1c;
/* rgb */ color: rgb(91, 142, 28);
/* oklch */ color: oklch(58.9% 0.150 131.5);
Tailwind
colors: {
  custom: {
    50: '#8eaf63',
    500: '#5b8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #5b8e1c;
$custom-light: #8eaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8e1c",
  "rgb": {
    "r": 91,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 86.842,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58876,
    "c": 0.14979,
    "h": 131.5
  },
  "luminance": 0.21654
}

Semantic roles & 50–950 ramp

primary
#5B8E1C
secondary
#7D49BD
accent
#3EEA8B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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