#5E8D1F#5E8D1F

#5E8D1F is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.145 H 130.5°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5E8D1F
RGBrgb(94, 141, 31)
HSLhsl(86, 64%, 34%)
HSVhsv(86, 78%, 55%)
CMYKcmyk(33.3%, 0%, 78%, 44.7%)
CIE-LABlab(53.52, -33.19, 49.74)
CIE-LCHlch(53.52, 59.80, 123.71°)
OKLaboklab(58.82% -0.0944 0.1105)
OKLCHoklch(58.82% 0.145 130.5)
XYZxyz(14.3882, 21.5279, 4.6933)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E8D1F #4E1F8D
analogous
#8D851F #5E8D1F #278D1F
triadic
#5E8D1F #1F5E8D #8D1F5E
tetradic
#5E8D1F #1F8D85 #4E1F8D #8D1F27
square
#5E8D1F #1F8D85 #4E1F8D #8D1F27
split-complementary
#5E8D1F #1F278D #851F8D
monochromatic
#1B2909 #3D5B14 #5E8D1F #7FBF2A #9DD84E

Accessibility & contrast

On white

3.96
#5E8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5E8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E8D1F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E8D1F#FFFFFF#000000##000000
##5E8D1F1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#608778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5e8d1f;
/* rgb */ color: rgb(94, 141, 31);
/* oklch */ color: oklch(58.8% 0.145 130.5);
Tailwind
colors: {
  custom: {
    50: '#90ae64',
    500: '#5e8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5e8d1f;
$custom-light: #90ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#5e8d1f",
  "rgb": {
    "r": 94,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 85.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58816,
    "c": 0.14528,
    "h": 130.5
  },
  "luminance": 0.21528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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