#5D8F1F#5D8F1F

#5D8F1F is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.3% C 0.148 H 131.2°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5D8F1F
RGBrgb(93, 143, 31)
HSLhsl(87, 64%, 34%)
HSVhsv(87, 78%, 56%)
CMYKcmyk(35%, 0%, 78.3%, 43.9%)
CIE-LABlab(54.10, -34.48, 50.27)
CIE-LCHlch(54.10, 60.96, 124.45°)
OKLaboklab(59.27% -0.0978 0.1116)
OKLCHoklch(59.27% 0.148 131.2)
XYZxyz(14.5839, 22.0705, 4.7877)
Luminance0.2207 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8F1F #511F8F
analogous
#8F891F #5D8F1F #258F1F
triadic
#5D8F1F #1F5D8F #8F1F5D
tetradic
#5D8F1F #1F8F89 #511F8F #8F1F25
square
#5D8F1F #1F8F89 #511F8F #8F1F25
split-complementary
#5D8F1F #1F258F #891F8F
monochromatic
#1C2A09 #3C5D14 #5D8F1F #7EC12A #9CD94F

Accessibility & contrast

On white

3.88
#5D8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5D8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8F1F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8F1F#FFFFFF#000000##000000
##5D8F1F1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968403
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#5F897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5d8f1f;
/* rgb */ color: rgb(93, 143, 31);
/* oklch */ color: oklch(59.3% 0.148 131.2);
Tailwind
colors: {
  custom: {
    50: '#8fb064',
    500: '#5d8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d8f1f;
$custom-light: #8fb064;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8f1f",
  "rgb": {
    "r": 93,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 86.786,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.1484,
    "h": 131.2
  },
  "luminance": 0.22071
}

Semantic roles & 50–950 ramp

primary
#5D8F1F
secondary
#7F4EBC
accent
#40E78B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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