#5B8E1F#5B8E1F

#5B8E1F is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 58.9% C 0.148 H 131.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B8E1F
RGBrgb(91, 142, 31)
HSLhsl(88, 64%, 34%)
HSVhsv(88, 78%, 56%)
CMYKcmyk(35.9%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.67, -34.79, 49.83)
CIE-LCHlch(53.67, 60.77, 124.92°)
OKLaboklab(58.9% -0.0985 0.1107)
OKLCHoklch(58.9% 0.148 131.7)
XYZxyz(14.2346, 21.6685, 4.7285)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8E1F #521F8E
analogous
#8E8A1F #5B8E1F #238E1F
triadic
#5B8E1F #1F5B8E #8E1F5B
tetradic
#5B8E1F #1F8E8A #521F8E #8E1F23
square
#5B8E1F #1F8E8A #521F8E #8E1F23
split-complementary
#5B8E1F #1F238E #8A1F8E
monochromatic
#1B2A09 #3B5C14 #5B8E1F #7BC02A #99D94F

Accessibility & contrast

On white

3.94
#5B8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5B8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8E1F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8E1F#FFFFFF#000000##000000
##5B8E1F1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948303
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#5C8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5b8e1f;
/* rgb */ color: rgb(91, 142, 31);
/* oklch */ color: oklch(58.9% 0.148 131.7);
Tailwind
colors: {
  custom: {
    50: '#8eaf64',
    500: '#5b8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b8e1f;
$custom-light: #8eaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8e1f",
  "rgb": {
    "r": 91,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 87.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58895,
    "c": 0.14819,
    "h": 131.7
  },
  "luminance": 0.21669
}

Semantic roles & 50–950 ramp

primary
#5B8E1F
secondary
#804DBB
accent
#41E78D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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