#4E8B1F#4E8B1F

#4E8B1F is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.151 H 134.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#4E8B1F
RGBrgb(78, 139, 31)
HSLhsl(94, 64%, 33%)
HSVhsv(94, 78%, 55%)
CMYKcmyk(43.9%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.04, -38.20, 48.03)
CIE-LCHlch(52.04, 61.37, 128.50°)
OKLaboklab(57.38% -0.1069 0.1072)
OKLCHoklch(57.38% 0.151 134.9)
XYZxyz(12.6216, 20.1832, 4.5267)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8B1F #5C1F8B
analogous
#848B1F #4E8B1F #1F8B26
triadic
#4E8B1F #1F4E8B #8B1F4E
tetradic
#4E8B1F #1F848B #5C1F8B #8B261F
square
#4E8B1F #1F848B #5C1F8B #8B261F
split-complementary
#4E8B1F #261F8B #8B1F84
monochromatic
#162709 #325914 #4E8B1F #6ABD2A #89D74D

Accessibility & contrast

On white

4.17
#4E8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#4E8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8B1F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8B1F#FFFFFF#000000##000000
##4E8B1F1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4D8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4e8b1f;
/* rgb */ color: rgb(78, 139, 31);
/* oklch */ color: oklch(57.4% 0.151 134.9);
Tailwind
colors: {
  custom: {
    50: '#85ad63',
    500: '#4e8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e8b1f;
$custom-light: #85ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8b1f",
  "rgb": {
    "r": 78,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 93.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57382,
    "c": 0.15136,
    "h": 134.9
  },
  "luminance": 0.20184
}

Semantic roles & 50–950 ramp

primary
#4E8B1F
secondary
#8A4CBA
accent
#41E79F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4E8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#4E8B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva