#4E8C1F#4E8C1F

#4E8C1F is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.6% C 0.153 H 135.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#4E8C1F
RGBrgb(78, 140, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 55%)
CMYKcmyk(44.3%, 0%, 77.9%, 45.1%)
CIE-LABlab(52.37, -38.63, 48.35)
CIE-LCHlch(52.37, 61.88, 128.62°)
OKLaboklab(57.65% -0.108 0.1078)
OKLCHoklch(57.65% 0.153 135)
XYZxyz(12.7670, 20.4741, 4.5752)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8C1F #5D1F8C
analogous
#848C1F #4E8C1F #1F8C26
triadic
#4E8C1F #1F4E8C #8C1F4E
tetradic
#4E8C1F #1F848C #5D1F8C #8C261F
square
#4E8C1F #1F848C #5D1F8C #8C261F
split-complementary
#4E8C1F #261F8C #8C1F84
monochromatic
#162809 #325A14 #4E8C1F #6ABE2A #89D84E

Accessibility & contrast

On white

4.12
#4E8C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#4E8C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8C1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8C1F#FFFFFF#000000##000000
##4E8C1F1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#4C8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4e8c1f;
/* rgb */ color: rgb(78, 140, 31);
/* oklch */ color: oklch(57.6% 0.153 135.0);
Tailwind
colors: {
  custom: {
    50: '#85ae63',
    500: '#4e8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e8c1f;
$custom-light: #85ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8c1f",
  "rgb": {
    "r": 78,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 94.128,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57649,
    "c": 0.15264,
    "h": 135
  },
  "luminance": 0.20475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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