#4D8A1F#4D8A1F

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

Color values

HEX#4D8A1F
RGBrgb(77, 138, 31)
HSLhsl(94, 63%, 33%)
HSVhsv(94, 78%, 54%)
CMYKcmyk(44.2%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.67, -38.12, 47.65)
CIE-LCHlch(51.67, 61.03, 128.66°)
OKLaboklab(57.06% -0.1066 0.1064)
OKLCHoklch(57.06% 0.151 135)
XYZxyz(12.3961, 19.8530, 4.4749)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8A1F #5C1F8A
analogous
#828A1F #4D8A1F #1F8A27
triadic
#4D8A1F #1F4D8A #8A1F4D
tetradic
#4D8A1F #1F828A #5C1F8A #8A271F
square
#4D8A1F #1F828A #5C1F8A #8A271F
split-complementary
#4D8A1F #271F8A #8A1F82
monochromatic
#152609 #315814 #4D8A1F #69BC2A #88D74C

Accessibility & contrast

On white

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

On black

4.97
#4D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8A1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8A1F#FFFFFF#000000##000000
##4D8A1F1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#4B8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4d8a1f;
/* rgb */ color: rgb(77, 138, 31);
/* oklch */ color: oklch(57.1% 0.151 135.0);
Tailwind
colors: {
  custom: {
    50: '#85ac63',
    500: '#4d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d8a1f;
$custom-light: #85ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8a1f",
  "rgb": {
    "r": 77,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 94.206,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57063,
    "c": 0.15061,
    "h": 135
  },
  "luminance": 0.19854
}

Semantic roles & 50–950 ramp

primary
#4D8A1F
secondary
#8A4BBA
accent
#41E69F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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