#4E8A1F#4E8A1F

#4E8A1F is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.1% C 0.150 H 134.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#4E8A1F
RGBrgb(78, 138, 31)
HSLhsl(94, 63%, 33%)
HSVhsv(94, 78%, 54%)
CMYKcmyk(43.5%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.72, -37.77, 47.72)
CIE-LCHlch(51.72, 60.86, 128.37°)
OKLaboklab(57.12% -0.1057 0.1065)
OKLCHoklch(57.12% 0.15 134.8)
XYZxyz(12.4774, 19.8949, 4.4787)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8A1F #5B1F8A
analogous
#838A1F #4E8A1F #1F8A25
triadic
#4E8A1F #1F4E8A #8A1F4E
tetradic
#4E8A1F #1F838A #5B1F8A #8A251F
square
#4E8A1F #1F838A #5B1F8A #8A251F
split-complementary
#4E8A1F #251F8A #8A1F83
monochromatic
#162609 #325814 #4E8A1F #6ABC2A #89D74C

Accessibility & contrast

On white

4.22
#4E8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#4E8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8A1F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8A1F#FFFFFF#000000##000000
##4E8A1F1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#877A2A
Tritanopia (blue-blind)
#4D8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4e8a1f;
/* rgb */ color: rgb(78, 138, 31);
/* oklch */ color: oklch(57.1% 0.150 134.8);
Tailwind
colors: {
  custom: {
    50: '#85ac63',
    500: '#4e8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e8a1f;
$custom-light: #85ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8a1f",
  "rgb": {
    "r": 78,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 93.645,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57115,
    "c": 0.15008,
    "h": 134.8
  },
  "luminance": 0.19896
}

Semantic roles & 50–950 ramp

primary
#4E8A1F
secondary
#894BBA
accent
#41E69E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4E8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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