#5B8A1F#5B8A1F

#5B8A1F is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.143 H 130.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5B8A1F
RGBrgb(91, 138, 31)
HSLhsl(86, 63%, 33%)
HSVhsv(86, 78%, 54%)
CMYKcmyk(34.1%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.40, -32.98, 48.61)
CIE-LCHlch(52.40, 58.74, 124.15°)
OKLaboklab(57.85% -0.0936 0.1081)
OKLCHoklch(57.85% 0.143 130.9)
XYZxyz(13.6501, 20.4995, 4.5337)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A1F #4E1F8A
analogous
#8A831F #5B8A1F #258A1F
triadic
#5B8A1F #1F5B8A #8A1F5B
tetradic
#5B8A1F #1F8A83 #4E1F8A #8A1F25
square
#5B8A1F #1F8A83 #4E1F8A #8A1F25
split-complementary
#5B8A1F #1F258A #831F8A
monochromatic
#192609 #3A5814 #5B8A1F #7CBC2A #9AD74C

Accessibility & contrast

On white

4.12
#5B8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5B8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A1F#FFFFFF#000000##000000
##5B8A1F1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#5D8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a1f;
/* rgb */ color: rgb(91, 138, 31);
/* oklch */ color: oklch(57.9% 0.143 130.9);
Tailwind
colors: {
  custom: {
    50: '#8eac63',
    500: '#5b8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a1f;
$custom-light: #8eac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a1f",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 86.355,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57853,
    "c": 0.14302,
    "h": 130.9
  },
  "luminance": 0.205
}

Semantic roles & 50–950 ramp

primary
#5B8A1F
secondary
#7C4BBA
accent
#41E68A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5B8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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