#5B7D1F#5B7D1F

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

Color values

HEX#5B7D1F
RGBrgb(91, 125, 31)
HSLhsl(82, 60%, 31%)
HSVhsv(82, 75%, 49%)
CMYKcmyk(27.2%, 0%, 75.2%, 51%)
CIE-LABlab(48.25, -26.83, 44.57)
CIE-LCHlch(48.25, 52.02, 121.04°)
OKLaboklab(54.48% -0.0769 0.0997)
OKLCHoklch(54.48% 0.126 127.6)
XYZxyz(11.8953, 16.9901, 3.9488)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D1F #411F7D
analogous
#7D701F #5B7D1F #2C7D1F
triadic
#5B7D1F #1F5B7D #7D1F5B
tetradic
#5B7D1F #1F7D70 #411F7D #7D1F2C
square
#5B7D1F #1F7D70 #411F7D #7D1F2C
split-complementary
#5B7D1F #1F2C7D #701F7D
monochromatic
#141B07 #374C13 #5B7D1F #7FAE2B #9ED145

Accessibility & contrast

On white

4.77
#5B7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B7D1F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D1F#FFFFFF#000000##FFFFFF
##5B7D1F1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#5E776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7d1f;
/* rgb */ color: rgb(91, 125, 31);
/* oklch */ color: oklch(54.5% 0.126 127.6);
Tailwind
colors: {
  custom: {
    50: '#8da362',
    500: '#5b7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d1f;
$custom-light: #8da362;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d1f",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 81.702,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54477,
    "c": 0.12588,
    "h": 127.6
  },
  "luminance": 0.1699
}

Semantic roles & 50–950 ramp

primary
#5B7D1F
secondary
#6D48B0
accent
#44E37E
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5B7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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