#5E8A1F#5E8A1F

#5E8A1F is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.0% C 0.141 H 129.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5E8A1F
RGBrgb(94, 138, 31)
HSLhsl(85, 63%, 33%)
HSVhsv(85, 78%, 54%)
CMYKcmyk(31.9%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.57, -31.81, 48.83)
CIE-LCHlch(52.57, 58.28, 123.08°)
OKLaboklab(58.04% -0.0906 0.1085)
OKLCHoklch(58.04% 0.141 129.9)
XYZxyz(13.9518, 20.6551, 4.5478)
Luminance0.2066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E8A1F #4B1F8A
analogous
#8A801F #5E8A1F #288A1F
triadic
#5E8A1F #1F5E8A #8A1F5E
tetradic
#5E8A1F #1F8A80 #4B1F8A #8A1F28
square
#5E8A1F #1F8A80 #4B1F8A #8A1F28
split-complementary
#5E8A1F #1F288A #801F8A
monochromatic
#1A2609 #3C5814 #5E8A1F #80BC2A #9ED74C

Accessibility & contrast

On white

4.09
#5E8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#5E8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E8A1F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E8A1F#FFFFFF#000000##000000
##5E8A1F1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F06
Deuteranopia (green-blind)
#8B7C2A
Tritanopia (blue-blind)
#618476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5e8a1f;
/* rgb */ color: rgb(94, 138, 31);
/* oklch */ color: oklch(58.0% 0.141 129.9);
Tailwind
colors: {
  custom: {
    50: '#90ac63',
    500: '#5e8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5e8a1f;
$custom-light: #90ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5e8a1f",
  "rgb": {
    "r": 94,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 84.673,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5804,
    "c": 0.1414,
    "h": 129.9
  },
  "luminance": 0.20656
}

Semantic roles & 50–950 ramp

primary
#5E8A1F
secondary
#794BBA
accent
#41E685
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5E8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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