#4E8D1F#4E8D1F

#4E8D1F is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.9% C 0.154 H 135.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4E8D1F
RGBrgb(78, 141, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 55%)
CMYKcmyk(44.7%, 0%, 78%, 44.7%)
CIE-LABlab(52.69, -39.05, 48.66)
CIE-LCHlch(52.69, 62.39, 128.75°)
OKLaboklab(57.92% -0.1092 0.1085)
OKLCHoklch(57.92% 0.154 135.2)
XYZxyz(12.9138, 20.7676, 4.6242)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8D1F #5E1F8D
analogous
#858D1F #4E8D1F #1F8D27
triadic
#4E8D1F #1F4E8D #8D1F4E
tetradic
#4E8D1F #1F858D #5E1F8D #8D271F
square
#4E8D1F #1F858D #5E1F8D #8D271F
split-complementary
#4E8D1F #271F8D #8D1F85
monochromatic
#162909 #325B14 #4E8D1F #6ABF2A #89D84E

Accessibility & contrast

On white

4.07
#4E8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4E8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8D1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8D1F#FFFFFF#000000##000000
##4E8D1F1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4C8778
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4e8d1f;
/* rgb */ color: rgb(78, 141, 31);
/* oklch */ color: oklch(57.9% 0.154 135.2);
Tailwind
colors: {
  custom: {
    50: '#86af64',
    500: '#4e8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e8d1f;
$custom-light: #86af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8d1f",
  "rgb": {
    "r": 78,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 94.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57916,
    "c": 0.15391,
    "h": 135.2
  },
  "luminance": 0.20768
}

Semantic roles & 50–950 ramp

primary
#4E8D1F
secondary
#8C4DBB
accent
#41E7A0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4E8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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