#5B971D#5B971D

#5B971D is a mid, vivid yellow-green. Relative luminance 0.244; OKLCH L 61.2% C 0.161 H 133.1°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B971D
RGBrgb(91, 151, 29)
HSLhsl(90, 68%, 35%)
HSVhsv(90, 81%, 59%)
CMYKcmyk(39.7%, 0%, 80.8%, 40.8%)
CIE-LABlab(56.53, -38.86, 53.16)
CIE-LCHlch(56.53, 65.85, 126.17°)
OKLaboklab(61.23% -0.1096 0.1174)
OKLCHoklch(61.23% 0.161 133.1)
XYZxyz(15.6025, 24.4453, 5.0585)
Luminance0.2445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B971D #591D97
analogous
#97961D #5B971D #1E971D
triadic
#5B971D #1D5B97 #971D5B
tetradic
#5B971D #1D9796 #591D97 #971D1E
square
#5B971D #1D9796 #591D97 #971D1E
split-complementary
#5B971D #1D1E97 #961D97
monochromatic
#1D3009 #3C6413 #5B971D #7ACA27 #98DE51

Accessibility & contrast

On white

3.57
#5B971D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5B971D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B971D
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B971D#FFFFFF#000000##000000
##5B971D1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#5B9181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b971d;
/* rgb */ color: rgb(91, 151, 29);
/* oklch */ color: oklch(61.2% 0.161 133.1);
Tailwind
colors: {
  custom: {
    50: '#8fb664',
    500: '#5b971d',
    950: '#000000',
  },
}
SCSS
$custom: #5b971d;
$custom-light: #8fb664;
$custom-dark: #000000;
JSON
{
  "hex": "#5b971d",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 89.508,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.16061,
    "h": 133.1
  },
  "luminance": 0.24446
}

Semantic roles & 50–950 ramp

primary
#5B971D
secondary
#874FC0
accent
#3DEB92
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B971D

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

Preview Lab → · Contrast checker → · Palette generator →

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