#5B7C1B#5B7C1B

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

Color values

HEX#5B7C1B
RGBrgb(91, 124, 27)
HSLhsl(80, 64%, 30%)
HSVhsv(80, 78%, 49%)
CMYKcmyk(26.6%, 0%, 78.2%, 51.4%)
CIE-LABlab(47.90, -26.58, 45.71)
CIE-LCHlch(47.90, 52.88, 120.18°)
OKLaboklab(54.19% -0.0766 0.1014)
OKLCHoklch(54.19% 0.127 127.1)
XYZxyz(11.7199, 16.7184, 3.6462)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7C1B #3C1B7C
analogous
#7C6C1B #5B7C1B #2B7C1B
triadic
#5B7C1B #1B5B7C #7C1B5B
tetradic
#5B7C1B #1B7C6C #3C1B7C #7C1B2B
square
#5B7C1B #1B7C6C #3C1B7C #7C1B2B
split-complementary
#5B7C1B #1B2B7C #6C1B7C
monochromatic
#121905 #364A10 #5B7C1B #80AE26 #A1D53D

Accessibility & contrast

On white

4.83
#5B7C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B7C1B
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7C1B#FFFFFF#000000##FFFFFF
##5B7C1B1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b7c1b;
/* rgb */ color: rgb(91, 124, 27);
/* oklch */ color: oklch(54.2% 0.127 127.1);
Tailwind
colors: {
  custom: {
    50: '#8da260',
    500: '#5b7c1b',
    950: '#000000',
  },
}
SCSS
$custom: #5b7c1b;
$custom-light: #8da260;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7c1b",
  "rgb": {
    "r": 91,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 80.412,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54189,
    "c": 0.12705,
    "h": 127.1
  },
  "luminance": 0.16719
}

Semantic roles & 50–950 ramp

primary
#5B7C1B
secondary
#6843B0
accent
#41E779
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5B7C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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