#5B982F#5B982F

#5B982F is a mid, vivid yellow-green. Relative luminance 0.249; OKLCH L 61.6% C 0.151 H 134.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5B982F
RGBrgb(91, 152, 47)
HSLhsl(95, 53%, 39%)
HSVhsv(95, 69%, 60%)
CMYKcmyk(40.1%, 0%, 69.1%, 40.4%)
CIE-LABlab(56.96, -38.10, 47.05)
CIE-LCHlch(56.96, 60.54, 129.00°)
OKLaboklab(61.62% -0.1063 0.1073)
OKLCHoklch(61.62% 0.151 134.7)
XYZxyz(16.0554, 24.8850, 6.6461)
Luminance0.2489 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B982F #6C2F98
analogous
#90982F #5B982F #2F9838
triadic
#5B982F #2F5B98 #982F5B
tetradic
#5B982F #2F9098 #6C2F98 #98382F
square
#5B982F #2F9098 #6C2F98 #98382F
split-complementary
#5B982F #382F98 #982F90
monochromatic
#233B12 #3F6921 #5B982F #77C440 #99D26F

Accessibility & contrast

On white

3.51
#5B982F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#5B982F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B982F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B982F#FFFFFF#000000##000000
##5B982F1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C20
Deuteranopia (green-blind)
#958738
Tritanopia (blue-blind)
#5A9283
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5b982f;
/* rgb */ color: rgb(91, 152, 47);
/* oklch */ color: oklch(61.6% 0.151 134.7);
Tailwind
colors: {
  custom: {
    50: '#8eb76d',
    500: '#5b982f',
    950: '#000000',
  },
}
SCSS
$custom: #5b982f;
$custom-light: #8eb76d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b982f",
  "rgb": {
    "r": 91,
    "g": 152,
    "b": 47
  },
  "hsl": {
    "h": 94.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.61617,
    "c": 0.151,
    "h": 134.7
  },
  "luminance": 0.24886
}

Semantic roles & 50–950 ramp

primary
#5B982F
secondary
#9869BA
accent
#4CDCA0
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5B982F

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

Preview Lab → · Contrast checker → · Palette generator →

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