#5B981F#5B981F

#5B981F is a mid, vivid yellow-green. Relative luminance 0.248; OKLCH L 61.5% C 0.161 H 133.3°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5B981F
RGBrgb(91, 152, 31)
HSLhsl(90, 66%, 36%)
HSVhsv(90, 80%, 60%)
CMYKcmyk(40.1%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.86, -39.19, 52.84)
CIE-LCHlch(56.86, 65.78, 126.56°)
OKLaboklab(61.5% -0.1104 0.117)
OKLCHoklch(61.5% 0.161 133.3)
XYZxyz(15.7897, 24.7788, 5.2469)
Luminance0.2478 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B981F #5C1F98
analogous
#97981F #5B981F #1F9820
triadic
#5B981F #1F5B98 #981F5B
tetradic
#5B981F #1F9798 #5C1F98 #98201F
square
#5B981F #1F9798 #5C1F98 #98201F
split-complementary
#5B981F #201F98 #981F97
monochromatic
#1E320A #3D6515 #5B981F #79CB29 #98DC55

Accessibility & contrast

On white

3.53
#5B981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#5B981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B981F
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B981F#FFFFFF#000000##000000
##5B981F1.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C00
Deuteranopia (green-blind)
#96872C
Tritanopia (blue-blind)
#5B9282
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b981f;
/* rgb */ color: rgb(91, 152, 31);
/* oklch */ color: oklch(61.5% 0.161 133.3);
Tailwind
colors: {
  custom: {
    50: '#8fb765',
    500: '#5b981f',
    950: '#000000',
  },
}
SCSS
$custom: #5b981f;
$custom-light: #8fb765;
$custom-dark: #000000;
JSON
{
  "hex": "#5b981f",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 90.248,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61499,
    "c": 0.16086,
    "h": 133.3
  },
  "luminance": 0.2478
}

Semantic roles & 50–950 ramp

primary
#5B981F
secondary
#8A53C0
accent
#3FE995
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B981F

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

Preview Lab → · Contrast checker → · Palette generator →

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