#5B971A#5B971A

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

Color values

HEX#5B971A
RGBrgb(91, 151, 26)
HSLhsl(89, 71%, 35%)
HSVhsv(89, 83%, 59%)
CMYKcmyk(39.7%, 0%, 82.8%, 40.8%)
CIE-LABlab(56.52, -39.01, 54.02)
CIE-LCHlch(56.52, 66.63, 125.83°)
OKLaboklab(61.21% -0.1102 0.1187)
OKLCHoklch(61.21% 0.162 132.9)
XYZxyz(15.5672, 24.4312, 4.8725)
Luminance0.2443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B971A #561A97
analogous
#97951A #5B971A #1D971A
triadic
#5B971A #1A5B97 #971A5B
tetradic
#5B971A #1A9795 #561A97 #971A1D
square
#5B971A #1A9795 #561A97 #971A1D
split-complementary
#5B971A #1A1D97 #951A97
monochromatic
#1C2F08 #3C6311 #5B971A #7ACB23 #99E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B971A#FFFFFF#000000##000000
##5B971A1.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)
#9E8B00
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#5B9180
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b971a;
/* rgb */ color: rgb(91, 151, 26);
/* oklch */ color: oklch(61.2% 0.162 132.9);
Tailwind
colors: {
  custom: {
    50: '#8fb663',
    500: '#5b971a',
    950: '#000000',
  },
}
SCSS
$custom: #5b971a;
$custom-light: #8fb663;
$custom-dark: #000000;
JSON
{
  "hex": "#5b971a",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 88.8,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61211,
    "c": 0.162,
    "h": 132.9
  },
  "luminance": 0.24432
}

Semantic roles & 50–950 ramp

primary
#5B971A
secondary
#844BC2
accent
#3AED90
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B971A

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

Preview Lab → · Contrast checker → · Palette generator →

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