#4F871C#4F871C

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

Color values

HEX#4F871C
RGBrgb(79, 135, 28)
HSLhsl(91, 66%, 32%)
HSVhsv(91, 79%, 53%)
CMYKcmyk(41.5%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.77, -36.30, 47.86)
CIE-LCHlch(50.77, 60.07, 127.18°)
OKLaboklab(56.35% -0.102 0.1063)
OKLCHoklch(56.35% 0.147 133.8)
XYZxyz(12.0978, 19.0734, 4.1425)
Luminance0.1907 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F871C #541C87
analogous
#85871C #4F871C #1C871F
triadic
#4F871C #1C4F87 #871C4F
tetradic
#4F871C #1C8587 #541C87 #871F1C
square
#4F871C #1C8587 #541C87 #871F1C
split-complementary
#4F871C #1F1C87 #871C85
monochromatic
#142207 #315411 #4F871C #6DBA27 #8BD845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F871C#FFFFFF#000000##000000
##4F871C1.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)
#8D7C01
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#4F8173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4f871c;
/* rgb */ color: rgb(79, 135, 28);
/* oklch */ color: oklch(56.3% 0.147 133.8);
Tailwind
colors: {
  custom: {
    50: '#86aa61',
    500: '#4f871c',
    950: '#000000',
  },
}
SCSS
$custom: #4f871c;
$custom-light: #86aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4f871c",
  "rgb": {
    "r": 79,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 91.402,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56349,
    "c": 0.14736,
    "h": 133.8
  },
  "luminance": 0.19074
}

Semantic roles & 50–950 ramp

primary
#4F871C
secondary
#8245BA
accent
#3FE998
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #4F871C

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

Preview Lab → · Contrast checker → · Palette generator →

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