#5D8A1F#5D8A1F

#5D8A1F is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.142 H 130.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5D8A1F
RGBrgb(93, 138, 31)
HSLhsl(85, 63%, 33%)
HSVhsv(85, 78%, 54%)
CMYKcmyk(32.6%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.51, -32.20, 48.76)
CIE-LCHlch(52.51, 58.43, 123.44°)
OKLaboklab(57.98% -0.0916 0.1084)
OKLCHoklch(57.98% 0.142 130.2)
XYZxyz(13.8499, 20.6026, 4.5430)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A1F #4C1F8A
analogous
#8A811F #5D8A1F #278A1F
triadic
#5D8A1F #1F5D8A #8A1F5D
tetradic
#5D8A1F #1F8A81 #4C1F8A #8A1F27
square
#5D8A1F #1F8A81 #4C1F8A #8A1F27
split-complementary
#5D8A1F #1F278A #811F8A
monochromatic
#1A2609 #3B5814 #5D8A1F #7FBC2A #9DD74C

Accessibility & contrast

On white

4.10
#5D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8A1F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8A1F#FFFFFF#000000##000000
##5D8A1F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F06
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#5F8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5d8a1f;
/* rgb */ color: rgb(93, 138, 31);
/* oklch */ color: oklch(58.0% 0.142 130.2);
Tailwind
colors: {
  custom: {
    50: '#8fac63',
    500: '#5d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a1f;
$custom-light: #8fac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a1f",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 85.234,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57977,
    "c": 0.14194,
    "h": 130.2
  },
  "luminance": 0.20603
}

Semantic roles & 50–950 ramp

primary
#5D8A1F
secondary
#7A4BBA
accent
#41E687
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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