#5D7E1F#5D7E1F

#5D7E1F is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.9% C 0.126 H 127.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5D7E1F
RGBrgb(93, 126, 31)
HSLhsl(81, 61%, 31%)
HSVhsv(81, 75%, 49%)
CMYKcmyk(26.2%, 0%, 75.4%, 50.6%)
CIE-LABlab(48.70, -26.49, 45.05)
CIE-LCHlch(48.70, 52.26, 120.45°)
OKLaboklab(54.87% -0.0761 0.1006)
OKLCHoklch(54.87% 0.126 127.1)
XYZxyz(12.2224, 17.3476, 4.0005)
Luminance0.1735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7E1F #401F7E
analogous
#7E6F1F #5D7E1F #2D7E1F
triadic
#5D7E1F #1F5D7E #7E1F5D
tetradic
#5D7E1F #1F7E6F #401F7E #7E1F2D
square
#5D7E1F #1F7E6F #401F7E #7E1F2D
split-complementary
#5D7E1F #1F2D7E #6F1F7E
monochromatic
#141C07 #394D13 #5D7E1F #81AF2B #A1D146

Accessibility & contrast

On white

4.70
#5D7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5D7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7E1F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7E1F#FFFFFF#000000##FFFFFF
##5D7E1F1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#61786C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5d7e1f;
/* rgb */ color: rgb(93, 126, 31);
/* oklch */ color: oklch(54.9% 0.126 127.1);
Tailwind
colors: {
  custom: {
    50: '#8ea362',
    500: '#5d7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d7e1f;
$custom-light: #8ea362;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7e1f",
  "rgb": {
    "r": 93,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 80.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.12617,
    "h": 127.1
  },
  "luminance": 0.17348
}

Semantic roles & 50–950 ramp

primary
#5D7E1F
secondary
#6C48B1
accent
#44E47C
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5D7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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