#4F871A#4F871A

#4F871A is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.3% C 0.148 H 133.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4F871A
RGBrgb(79, 135, 26)
HSLhsl(91, 68%, 32%)
HSVhsv(91, 81%, 53%)
CMYKcmyk(41.5%, 0%, 80.7%, 47.1%)
CIE-LABlab(50.76, -36.42, 48.51)
CIE-LCHlch(50.76, 60.66, 126.90°)
OKLaboklab(56.34% -0.1025 0.1074)
OKLCHoklch(56.34% 0.148 133.7)
XYZxyz(12.0747, 19.0642, 4.0206)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F871A #521A87
analogous
#86871A #4F871A #1A871C
triadic
#4F871A #1A4F87 #871A4F
tetradic
#4F871A #1A8687 #521A87 #871C1A
square
#4F871A #1A8687 #521A87 #871C1A
split-complementary
#4F871A #1C1A87 #871A86
monochromatic
#132006 #315410 #4F871A #6DBA24 #8CDA41

Accessibility & contrast

On white

4.36
#4F871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#4F871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F871A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F871A#FFFFFF#000000##000000
##4F871A1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#4F8173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4f871a;
/* rgb */ color: rgb(79, 135, 26);
/* oklch */ color: oklch(56.3% 0.148 133.7);
Tailwind
colors: {
  custom: {
    50: '#86aa60',
    500: '#4f871a',
    950: '#000000',
  },
}
SCSS
$custom: #4f871a;
$custom-light: #86aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#4f871a",
  "rgb": {
    "r": 79,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 90.826,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56337,
    "c": 0.14843,
    "h": 133.7
  },
  "luminance": 0.19065
}

Semantic roles & 50–950 ramp

primary
#4F871A
secondary
#8042BA
accent
#3DEB96
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F871A

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

Preview Lab → · Contrast checker → · Palette generator →

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