#4F8F20#4F8F20

#4F8F20 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.5% C 0.155 H 135.3°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#4F8F20
RGBrgb(79, 143, 32)
HSLhsl(95, 63%, 34%)
HSVhsv(95, 78%, 56%)
CMYKcmyk(44.8%, 0%, 77.6%, 43.9%)
CIE-LABlab(53.40, -39.49, 49.01)
CIE-LCHlch(53.40, 62.94, 128.86°)
OKLaboklab(58.51% -0.1103 0.1094)
OKLCHoklch(58.51% 0.155 135.3)
XYZxyz(13.3073, 21.4107, 4.7977)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8F20 #60208F
analogous
#878F20 #4F8F20 #208F29
triadic
#4F8F20 #204F8F #8F204F
tetradic
#4F8F20 #20878F #60208F #8F2920
square
#4F8F20 #20878F #60208F #8F2920
split-complementary
#4F8F20 #29208F #8F2087
monochromatic
#182B0A #335D15 #4F8F20 #6BC12B #8AD851

Accessibility & contrast

On white

3.98
#4F8F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#4F8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8F20
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8F20#FFFFFF#000000##000000
##4F8F201.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948306
Deuteranopia (green-blind)
#8C7E2C
Tritanopia (blue-blind)
#4D897A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #4f8f20;
/* rgb */ color: rgb(79, 143, 32);
/* oklch */ color: oklch(58.5% 0.155 135.3);
Tailwind
colors: {
  custom: {
    50: '#86b064',
    500: '#4f8f20',
    950: '#000000',
  },
}
SCSS
$custom: #4f8f20;
$custom-light: #86b064;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8f20",
  "rgb": {
    "r": 79,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 94.595,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58506,
    "c": 0.15537,
    "h": 135.3
  },
  "luminance": 0.21411
}

Semantic roles & 50–950 ramp

primary
#4F8F20
secondary
#8E4FBB
accent
#41E6A1
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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