#4D8F1F#4D8F1F

#4D8F1F is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.4% C 0.157 H 135.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4D8F1F
RGBrgb(77, 143, 31)
HSLhsl(95, 64%, 34%)
HSVhsv(95, 78%, 56%)
CMYKcmyk(46.2%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.30, -40.23, 49.23)
CIE-LCHlch(53.30, 63.57, 129.26°)
OKLaboklab(58.4% -0.1123 0.1097)
OKLCHoklch(58.4% 0.157 135.7)
XYZxyz(13.1300, 21.3208, 4.7195)
Luminance0.2132 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8F1F #611F8F
analogous
#858F1F #4D8F1F #1F8F29
triadic
#4D8F1F #1F4D8F #8F1F4D
tetradic
#4D8F1F #1F858F #611F8F #8F291F
square
#4D8F1F #1F858F #611F8F #8F291F
split-complementary
#4D8F1F #291F8F #8F1F85
monochromatic
#172A09 #325D14 #4D8F1F #68C12A #88D94F

Accessibility & contrast

On white

3.99
#4D8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#4D8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8F1F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8F1F#FFFFFF#000000##000000
##4D8F1F1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948303
Deuteranopia (green-blind)
#8C7D2B
Tritanopia (blue-blind)
#4B897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4d8f1f;
/* rgb */ color: rgb(77, 143, 31);
/* oklch */ color: oklch(58.4% 0.157 135.7);
Tailwind
colors: {
  custom: {
    50: '#85b064',
    500: '#4d8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d8f1f;
$custom-light: #85b064;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8f1f",
  "rgb": {
    "r": 77,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 95.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58399,
    "c": 0.15697,
    "h": 135.7
  },
  "luminance": 0.21322
}

Semantic roles & 50–950 ramp

primary
#4D8F1F
secondary
#8F4EBC
accent
#40E7A3
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4D8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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