#4F8E1F#4F8E1F

#4F8E1F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.2% C 0.155 H 135.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4F8E1F
RGBrgb(79, 142, 31)
HSLhsl(94, 64%, 34%)
HSVhsv(94, 78%, 56%)
CMYKcmyk(44.4%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.07, -39.13, 49.03)
CIE-LCHlch(53.07, 62.73, 128.59°)
OKLaboklab(58.23% -0.1094 0.1093)
OKLCHoklch(58.23% 0.155 135)
XYZxyz(13.1445, 21.1064, 4.6774)
Luminance0.2111 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8E1F #5E1F8E
analogous
#878E1F #4F8E1F #1F8E27
triadic
#4F8E1F #1F4F8E #8E1F4F
tetradic
#4F8E1F #1F878E #5E1F8E #8E271F
square
#4F8E1F #1F878E #5E1F8E #8E271F
split-complementary
#4F8E1F #271F8E #8E1F87
monochromatic
#172A09 #335C14 #4F8E1F #6BC02A #8AD94F

Accessibility & contrast

On white

4.02
#4F8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#4F8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8E1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8E1F#FFFFFF#000000##000000
##4F8E1F1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#4D8879
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4f8e1f;
/* rgb */ color: rgb(79, 142, 31);
/* oklch */ color: oklch(58.2% 0.155 135.0);
Tailwind
colors: {
  custom: {
    50: '#86af64',
    500: '#4f8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f8e1f;
$custom-light: #86af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8e1f",
  "rgb": {
    "r": 79,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 94.054,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58233,
    "c": 0.15465,
    "h": 135
  },
  "luminance": 0.21107
}

Semantic roles & 50–950 ramp

primary
#4F8E1F
secondary
#8C4DBB
accent
#41E79F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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