#5D7D1F#5D7D1F

#5D7D1F is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.6% C 0.125 H 126.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5D7D1F
RGBrgb(93, 125, 31)
HSLhsl(80, 60%, 31%)
HSVhsv(80, 75%, 49%)
CMYKcmyk(25.6%, 0%, 75.2%, 51%)
CIE-LABlab(48.38, -25.99, 44.74)
CIE-LCHlch(48.38, 51.74, 120.15°)
OKLaboklab(54.62% -0.0747 0.1)
OKLCHoklch(54.62% 0.125 126.8)
XYZxyz(12.0952, 17.0931, 3.9581)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7D1F #3F1F7D
analogous
#7D6E1F #5D7D1F #2E7D1F
triadic
#5D7D1F #1F5D7D #7D1F5D
tetradic
#5D7D1F #1F7D6E #3F1F7D #7D1F2E
square
#5D7D1F #1F7D6E #3F1F7D #7D1F2E
split-complementary
#5D7D1F #1F2E7D #6E1F7D
monochromatic
#141B07 #394C13 #5D7D1F #81AE2B #A1D145

Accessibility & contrast

On white

4.75
#5D7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5D7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7D1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7D1F#FFFFFF#000000##FFFFFF
##5D7D1F1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d7d1f;
/* rgb */ color: rgb(93, 125, 31);
/* oklch */ color: oklch(54.6% 0.125 126.8);
Tailwind
colors: {
  custom: {
    50: '#8ea262',
    500: '#5d7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d7d1f;
$custom-light: #8ea262;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7d1f",
  "rgb": {
    "r": 93,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 80.426,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54616,
    "c": 0.12484,
    "h": 126.8
  },
  "luminance": 0.17093
}

Semantic roles & 50–950 ramp

primary
#5D7D1F
secondary
#6B48B0
accent
#44E37B
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0D0F05
muted
#7D7F7A

Preview Lab

Preview with #5D7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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