#5B981E#5B981E

#5B981E 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.95:1 contrast (WCAG AA passes).

Color values

HEX#5B981E
RGBrgb(91, 152, 30)
HSLhsl(90, 67%, 36%)
HSVhsv(90, 80%, 60%)
CMYKcmyk(40.1%, 0%, 80.3%, 40.4%)
CIE-LABlab(56.85, -39.24, 53.15)
CIE-LCHlch(56.85, 66.06, 126.44°)
OKLaboklab(61.49% -0.1106 0.1175)
OKLCHoklch(61.49% 0.161 133.3)
XYZxyz(15.7767, 24.7736, 5.1785)
Luminance0.2477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B981E #5B1E98
analogous
#98981E #5B981E #1E981E
triadic
#5B981E #1E5B98 #981E5B
tetradic
#5B981E #1E9898 #5B1E98 #981E1E
square
#5B981E #1E9898 #5B1E98 #981E1E
split-complementary
#5B981E #1E1E98 #981E98
monochromatic
#1E320A #3C6514 #5B981E #7ACB28 #98DD53

Accessibility & contrast

On white

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

On black

5.95
#5B981E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B981E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B981E#FFFFFF#000000##000000
##5B981E1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b981e;
/* rgb */ color: rgb(91, 152, 30);
/* oklch */ color: oklch(61.5% 0.161 133.3);
Tailwind
colors: {
  custom: {
    50: '#8fb765',
    500: '#5b981e',
    950: '#000000',
  },
}
SCSS
$custom: #5b981e;
$custom-light: #8fb765;
$custom-dark: #000000;
JSON
{
  "hex": "#5b981e",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 30
  },
  "hsl": {
    "h": 90,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61493,
    "c": 0.16136,
    "h": 133.3
  },
  "luminance": 0.24774
}

Semantic roles & 50–950 ramp

primary
#5B981E
secondary
#8951C0
accent
#3EEA94
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B981E

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

Preview Lab → · Contrast checker → · Palette generator →

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