#4F8917#4F8917

#4F8917 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.9% C 0.152 H 133.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4F8917
RGBrgb(79, 137, 23)
HSLhsl(91, 71%, 31%)
HSVhsv(91, 83%, 54%)
CMYKcmyk(42.3%, 0%, 83.2%, 46.3%)
CIE-LABlab(51.40, -37.44, 50.01)
CIE-LCHlch(51.40, 62.47, 126.82°)
OKLaboklab(56.85% -0.1054 0.1101)
OKLCHoklch(56.85% 0.152 133.8)
XYZxyz(12.3246, 19.6148, 3.9471)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8917 #511789
analogous
#888917 #4F8917 #178918
triadic
#4F8917 #174F89 #89174F
tetradic
#4F8917 #178889 #511789 #891817
square
#4F8917 #178889 #511789 #891817
split-complementary
#4F8917 #181789 #891788
monochromatic
#132005 #31550E #4F8917 #6DBD20 #8CDE3C

Accessibility & contrast

On white

4.27
#4F8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#4F8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8917
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8917#FFFFFF#000000##000000
##4F89171.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#4F8374
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4f8917;
/* rgb */ color: rgb(79, 137, 23);
/* oklch */ color: oklch(56.9% 0.152 133.8);
Tailwind
colors: {
  custom: {
    50: '#86ac60',
    500: '#4f8917',
    950: '#000000',
  },
}
SCSS
$custom: #4f8917;
$custom-light: #86ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8917",
  "rgb": {
    "r": 79,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 90.526,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56853,
    "c": 0.1524,
    "h": 133.8
  },
  "luminance": 0.19615
}

Semantic roles & 50–950 ramp

primary
#4F8917
secondary
#7F3FBD
accent
#3AEE95
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4F8917

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

Preview Lab → · Contrast checker → · Palette generator →

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