#5D8B1F#5D8B1F

#5D8B1F is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.2% C 0.143 H 130.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5D8B1F
RGBrgb(93, 139, 31)
HSLhsl(86, 64%, 33%)
HSVhsv(86, 78%, 55%)
CMYKcmyk(33.1%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.83, -32.66, 49.06)
CIE-LCHlch(52.83, 58.94, 123.65°)
OKLaboklab(58.24% -0.0929 0.109)
OKLCHoklch(58.24% 0.143 130.4)
XYZxyz(13.9941, 20.8909, 4.5911)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8B1F #4D1F8B
analogous
#8B831F #5D8B1F #278B1F
triadic
#5D8B1F #1F5D8B #8B1F5D
tetradic
#5D8B1F #1F8B83 #4D1F8B #8B1F27
square
#5D8B1F #1F8B83 #4D1F8B #8B1F27
split-complementary
#5D8B1F #1F278B #831F8B
monochromatic
#1A2709 #3C5914 #5D8B1F #7EBD2A #9CD74D

Accessibility & contrast

On white

4.06
#5D8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5D8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8B1F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8B1F#FFFFFF#000000##000000
##5D8B1F1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928005
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#5F8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5d8b1f;
/* rgb */ color: rgb(93, 139, 31);
/* oklch */ color: oklch(58.2% 0.143 130.4);
Tailwind
colors: {
  custom: {
    50: '#8fad64',
    500: '#5d8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d8b1f;
$custom-light: #8fad64;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8b1f",
  "rgb": {
    "r": 93,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 85.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58236,
    "c": 0.14324,
    "h": 130.4
  },
  "luminance": 0.20891
}

Semantic roles & 50–950 ramp

primary
#5D8B1F
secondary
#7B4CBA
accent
#41E788
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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