#5BA81F#5BA81F

#5BA81F is a light, vivid yellow-green. Relative luminance 0.303; OKLCH L 65.7% C 0.180 H 135.3°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5BA81F
RGBrgb(91, 168, 31)
HSLhsl(94, 69%, 39%)
HSVhsv(94, 82%, 66%)
CMYKcmyk(45.8%, 0%, 81.5%, 34.1%)
CIE-LABlab(61.94, -45.83, 57.55)
CIE-LCHlch(61.94, 73.56, 128.53°)
OKLaboklab(65.66% -0.1282 0.1269)
OKLCHoklch(65.66% 0.18 135.3)
XYZxyz(18.5639, 30.3272, 6.1716)
Luminance0.3033 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5BA81F #6C1FA8
analogous
#A0A81F #5BA81F #1FA828
triadic
#5BA81F #1F5BA8 #A81F5B
tetradic
#5BA81F #1FA0A8 #6C1FA8 #A8281F
square
#5BA81F #1FA0A8 #6C1FA8 #A8281F
split-complementary
#5BA81F #281FA8 #A81FA0
monochromatic
#23410C #3F7415 #5BA81F #77D82C #99E260

Accessibility & contrast

On white

2.97
#5BA81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#5BA81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5BA81F
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5BA81F#FFFFFF#000000##000000
##5BA81F1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A00
Deuteranopia (green-blind)
#A4932F
Tritanopia (blue-blind)
#59A18F
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5ba81f;
/* rgb */ color: rgb(91, 168, 31);
/* oklch */ color: oklch(65.7% 0.180 135.3);
Tailwind
colors: {
  custom: {
    50: '#91c268',
    500: '#5ba81f',
    950: '#000000',
  },
}
SCSS
$custom: #5ba81f;
$custom-light: #91c268;
$custom-dark: #000000;
JSON
{
  "hex": "#5ba81f",
  "rgb": {
    "r": 91,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 93.723,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.65662,
    "c": 0.18041,
    "h": 135.3
  },
  "luminance": 0.30328
}

Semantic roles & 50–950 ramp

primary
#5BA81F
secondary
#985DC6
accent
#3CEC9F
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #5BA81F

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

Preview Lab → · Contrast checker → · Palette generator →

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