#5B8D1F#5B8D1F

#5B8D1F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.6% C 0.147 H 131.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5B8D1F
RGBrgb(91, 141, 31)
HSLhsl(87, 64%, 34%)
HSVhsv(87, 78%, 55%)
CMYKcmyk(35.5%, 0%, 78%, 44.7%)
CIE-LABlab(53.35, -34.34, 49.52)
CIE-LCHlch(53.35, 60.26, 124.74°)
OKLaboklab(58.63% -0.0973 0.1101)
OKLCHoklch(58.63% 0.147 131.5)
XYZxyz(14.0865, 21.3723, 4.6791)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8D1F #511F8D
analogous
#8D881F #5B8D1F #248D1F
triadic
#5B8D1F #1F5B8D #8D1F5B
tetradic
#5B8D1F #1F8D88 #511F8D #8D1F24
square
#5B8D1F #1F8D88 #511F8D #8D1F24
split-complementary
#5B8D1F #1F248D #881F8D
monochromatic
#1A2909 #3B5B14 #5B8D1F #7BBF2A #99D84E

Accessibility & contrast

On white

3.98
#5B8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5B8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8D1F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8D1F#FFFFFF#000000##000000
##5B8D1F1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8D7E2A
Tritanopia (blue-blind)
#5D8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5b8d1f;
/* rgb */ color: rgb(91, 141, 31);
/* oklch */ color: oklch(58.6% 0.147 131.5);
Tailwind
colors: {
  custom: {
    50: '#8eae64',
    500: '#5b8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b8d1f;
$custom-light: #8eae64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8d1f",
  "rgb": {
    "r": 91,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 87.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.14691,
    "h": 131.5
  },
  "luminance": 0.21373
}

Semantic roles & 50–950 ramp

primary
#5B8D1F
secondary
#7F4DBB
accent
#41E78C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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