#5B8D1D#5B8D1D

#5B8D1D is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.6% C 0.148 H 131.3°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B8D1D
RGBrgb(91, 141, 29)
HSLhsl(87, 66%, 33%)
HSVhsv(87, 79%, 55%)
CMYKcmyk(35.5%, 0%, 79.4%, 44.7%)
CIE-LABlab(53.34, -34.45, 50.18)
CIE-LCHlch(53.34, 60.87, 124.47°)
OKLaboklab(58.62% -0.0978 0.1111)
OKLCHoklch(58.62% 0.148 131.3)
XYZxyz(14.0609, 21.3621, 4.5446)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D1D #4F1D8D
analogous
#8D871D #5B8D1D #238D1D
triadic
#5B8D1D #1D5B8D #8D1D5B
tetradic
#5B8D1D #1D8D87 #4F1D8D #8D1D23
square
#5B8D1D #1D8D87 #4F1D8D #8D1D23
split-complementary
#5B8D1D #1D238D #871D8D
monochromatic
#192708 #3A5A13 #5B8D1D #7CC027 #9ADA4B

Accessibility & contrast

On white

3.98
#5B8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5B8D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D1D
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D1D#FFFFFF#000000##000000
##5B8D1D1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#8D7E29
Tritanopia (blue-blind)
#5D8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d1d;
/* rgb */ color: rgb(91, 141, 29);
/* oklch */ color: oklch(58.6% 0.148 131.3);
Tailwind
colors: {
  custom: {
    50: '#8eae63',
    500: '#5b8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d1d;
$custom-light: #8eae63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d1d",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 86.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58622,
    "c": 0.148,
    "h": 131.3
  },
  "luminance": 0.21363
}

Semantic roles & 50–950 ramp

primary
#5B8D1D
secondary
#7D4ABC
accent
#3FE98B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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