#4D871F#4D871F

#4D871F is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.3% C 0.147 H 134.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4D871F
RGBrgb(77, 135, 31)
HSLhsl(93, 63%, 33%)
HSVhsv(93, 77%, 53%)
CMYKcmyk(43%, 0%, 77%, 47.1%)
CIE-LABlab(50.69, -36.83, 46.70)
CIE-LCHlch(50.69, 59.48, 128.26°)
OKLaboklab(56.26% -0.1031 0.1044)
OKLCHoklch(56.26% 0.147 134.6)
XYZxyz(11.9716, 19.0040, 4.3334)
Luminance0.1900 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D871F #591F87
analogous
#81871F #4D871F #1F8725
triadic
#4D871F #1F4D87 #871F4D
tetradic
#4D871F #1F8187 #591F87 #87251F
square
#4D871F #1F8187 #591F87 #87251F
split-complementary
#4D871F #251F87 #871F81
monochromatic
#142308 #315514 #4D871F #69B92A #88D64B

Accessibility & contrast

On white

4.37
#4D871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4D871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D871F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D871F#FFFFFF#000000##000000
##4D871F1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C08
Deuteranopia (green-blind)
#85772A
Tritanopia (blue-blind)
#4C8273
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4d871f;
/* rgb */ color: rgb(77, 135, 31);
/* oklch */ color: oklch(56.3% 0.147 134.6);
Tailwind
colors: {
  custom: {
    50: '#84aa63',
    500: '#4d871f',
    950: '#000000',
  },
}
SCSS
$custom: #4d871f;
$custom-light: #84aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#4d871f",
  "rgb": {
    "r": 77,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 93.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56261,
    "c": 0.14674,
    "h": 134.6
  },
  "luminance": 0.19005
}

Semantic roles & 50–950 ramp

primary
#4D871F
secondary
#874AB8
accent
#42E69D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4D871F

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

Preview Lab → · Contrast checker → · Palette generator →

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