#5B7C1A#5B7C1A

#5B7C1A is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.2% C 0.128 H 127.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5B7C1A
RGBrgb(91, 124, 26)
HSLhsl(80, 65%, 29%)
HSVhsv(80, 79%, 49%)
CMYKcmyk(26.6%, 0%, 79%, 51.4%)
CIE-LABlab(47.90, -26.63, 46.06)
CIE-LCHlch(47.90, 53.20, 120.04°)
OKLaboklab(54.18% -0.0768 0.102)
OKLCHoklch(54.18% 0.128 127)
XYZxyz(11.7085, 16.7138, 3.5863)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7C1A #3B1A7C
analogous
#7C6C1A #5B7C1A #2A7C1A
triadic
#5B7C1A #1A5B7C #7C1A5B
tetradic
#5B7C1A #1A7C6C #3B1A7C #7C1A2A
square
#5B7C1A #1A7C6C #3B1A7C #7C1A2A
split-complementary
#5B7C1A #1A2A7C #6C1A7C
monochromatic
#131905 #36490F #5B7C1A #80AF25 #A2D63B

Accessibility & contrast

On white

4.84
#5B7C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5B7C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7C1A
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7C1A#FFFFFF#000000##FFFFFF
##5B7C1A1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#5F766A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7c1a;
/* rgb */ color: rgb(91, 124, 26);
/* oklch */ color: oklch(54.2% 0.128 127.0);
Tailwind
colors: {
  custom: {
    50: '#8da25f',
    500: '#5b7c1a',
    950: '#000000',
  },
}
SCSS
$custom: #5b7c1a;
$custom-light: #8da25f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7c1a",
  "rgb": {
    "r": 91,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 80.204,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54183,
    "c": 0.12763,
    "h": 127
  },
  "luminance": 0.16714
}

Semantic roles & 50–950 ramp

primary
#5B7C1A
secondary
#6742B0
accent
#40E878
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5B7C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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