#5B7D1D#5B7D1D

#5B7D1D is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.5% C 0.127 H 127.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D1D
RGBrgb(91, 125, 29)
HSLhsl(81, 62%, 30%)
HSVhsv(81, 77%, 49%)
CMYKcmyk(27.2%, 0%, 76.8%, 51%)
CIE-LABlab(48.23, -26.95, 45.31)
CIE-LCHlch(48.23, 52.72, 120.75°)
OKLaboklab(54.46% -0.0774 0.1009)
OKLCHoklch(54.46% 0.127 127.5)
XYZxyz(11.8698, 16.9798, 3.8142)
Luminance0.1698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D1D #3F1D7D
analogous
#7D6F1D #5B7D1D #2B7D1D
triadic
#5B7D1D #1D5B7D #7D1D5B
tetradic
#5B7D1D #1D7D6F #3F1D7D #7D1D2B
square
#5B7D1D #1D7D6F #3F1D7D #7D1D2B
split-complementary
#5B7D1D #1D2B7D #6F1D7D
monochromatic
#131A06 #374B11 #5B7D1D #7FAF29 #9FD341

Accessibility & contrast

On white

4.78
#5B7D1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5B7D1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D1D
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D1D#FFFFFF#000000##FFFFFF
##5B7D1D1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847409
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#5F776B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d1d;
/* rgb */ color: rgb(91, 125, 29);
/* oklch */ color: oklch(54.5% 0.127 127.5);
Tailwind
colors: {
  custom: {
    50: '#8da261',
    500: '#5b7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d1d;
$custom-light: #8da261;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d1d",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 81.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54462,
    "c": 0.12716,
    "h": 127.5
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#5B7D1D
secondary
#6B45B1
accent
#42E57C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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