#5B8B1A#5B8B1A

#5B8B1A is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.1% C 0.147 H 130.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5B8B1A
RGBrgb(91, 139, 26)
HSLhsl(85, 68%, 32%)
HSVhsv(85, 81%, 55%)
CMYKcmyk(34.5%, 0%, 81.3%, 45.5%)
CIE-LABlab(52.69, -33.70, 50.53)
CIE-LCHlch(52.69, 60.74, 123.71°)
OKLaboklab(58.08% -0.0959 0.1114)
OKLCHoklch(58.08% 0.147 130.7)
XYZxyz(13.7334, 20.7635, 4.2612)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8B1A #4A1A8B
analogous
#8B831A #5B8B1A #228B1A
triadic
#5B8B1A #1A5B8B #8B1A5B
tetradic
#5B8B1A #1A8B83 #4A1A8B #8B1A22
square
#5B8B1A #1A8B83 #4A1A8B #8B1A22
split-complementary
#5B8B1A #1A228B #831A8B
monochromatic
#172407 #395710 #5B8B1A #7DBF24 #9BDC43

Accessibility & contrast

On white

4.08
#5B8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5B8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8B1A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8B1A#FFFFFF#000000##000000
##5B8B1A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8B7D27
Tritanopia (blue-blind)
#5D8576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8b1a;
/* rgb */ color: rgb(91, 139, 26);
/* oklch */ color: oklch(58.1% 0.147 130.7);
Tailwind
colors: {
  custom: {
    50: '#8ead61',
    500: '#5b8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #5b8b1a;
$custom-light: #8ead61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8b1a",
  "rgb": {
    "r": 91,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 85.487,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58083,
    "c": 0.14699,
    "h": 130.7
  },
  "luminance": 0.20764
}

Semantic roles & 50–950 ramp

primary
#5B8B1A
secondary
#7744BD
accent
#3CEB87
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5B8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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