#4F871F#4F871F

#4F871F is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.4% C 0.146 H 134.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4F871F
RGBrgb(79, 135, 31)
HSLhsl(92, 63%, 33%)
HSVhsv(92, 77%, 53%)
CMYKcmyk(41.5%, 0%, 77%, 47.1%)
CIE-LABlab(50.79, -36.12, 46.83)
CIE-LCHlch(50.79, 59.14, 127.64°)
OKLaboklab(56.37% -0.1013 0.1047)
OKLCHoklch(56.37% 0.146 134.1)
XYZxyz(12.1355, 19.0885, 4.3411)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F871F #571F87
analogous
#83871F #4F871F #1F8723
triadic
#4F871F #1F4F87 #871F4F
tetradic
#4F871F #1F8387 #571F87 #87231F
square
#4F871F #1F8387 #571F87 #87231F
split-complementary
#4F871F #231F87 #871F83
monochromatic
#152308 #325514 #4F871F #6CB92A #8BD64B

Accessibility & contrast

On white

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

On black

4.82
#4F871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F871F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F871F#FFFFFF#000000##000000
##4F871F1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f871f;
/* rgb */ color: rgb(79, 135, 31);
/* oklch */ color: oklch(56.4% 0.146 134.1);
Tailwind
colors: {
  custom: {
    50: '#85aa63',
    500: '#4f871f',
    950: '#000000',
  },
}
SCSS
$custom: #4f871f;
$custom-light: #85aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#4f871f",
  "rgb": {
    "r": 79,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 92.308,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56369,
    "c": 0.14566,
    "h": 134.1
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#4F871F
secondary
#854AB8
accent
#42E69A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F871F

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

Preview Lab → · Contrast checker → · Palette generator →

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