#5B8E1B#5B8E1B

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

Color values

HEX#5B8E1B
RGBrgb(91, 142, 27)
HSLhsl(87, 68%, 33%)
HSVhsv(87, 81%, 56%)
CMYKcmyk(35.9%, 0%, 81%, 44.3%)
CIE-LABlab(53.65, -35.01, 51.11)
CIE-LCHlch(53.65, 61.95, 124.41°)
OKLaboklab(58.87% -0.0994 0.1127)
OKLCHoklch(58.87% 0.15 131.4)
XYZxyz(14.1851, 21.6487, 4.4679)
Luminance0.2165 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8E1B #4E1B8E
analogous
#8E871B #5B8E1B #218E1B
triadic
#5B8E1B #1B5B8E #8E1B5B
tetradic
#5B8E1B #1B8E87 #4E1B8E #8E1B21
square
#5B8E1B #1B8E87 #4E1B8E #8E1B21
split-complementary
#5B8E1B #1B218E #871B8E
monochromatic
#192707 #3A5B11 #5B8E1B #7CC125 #9ADC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B8E1B#FFFFFF#000000##000000
##5B8E1B1.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)
#958300
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#5D8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b8e1b;
/* rgb */ color: rgb(91, 142, 27);
/* oklch */ color: oklch(58.9% 0.150 131.4);
Tailwind
colors: {
  custom: {
    50: '#8eaf62',
    500: '#5b8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #5b8e1b;
$custom-light: #8eaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8e1b",
  "rgb": {
    "r": 91,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 86.609,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58871,
    "c": 0.1503,
    "h": 131.4
  },
  "luminance": 0.21649
}

Semantic roles & 50–950 ramp

primary
#5B8E1B
secondary
#7C47BE
accent
#3DEB8A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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