#4F8817#4F8817

#4F8817 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.6% C 0.151 H 133.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4F8817
RGBrgb(79, 136, 23)
HSLhsl(90, 71%, 31%)
HSVhsv(90, 83%, 53%)
CMYKcmyk(41.9%, 0%, 83.1%, 46.7%)
CIE-LABlab(51.07, -37.01, 49.72)
CIE-LCHlch(51.07, 61.98, 126.66°)
OKLaboklab(56.59% -0.1042 0.1094)
OKLCHoklch(56.59% 0.151 133.6)
XYZxyz(12.1831, 19.3318, 3.8999)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8817 #501788
analogous
#878817 #4F8817 #178817
triadic
#4F8817 #174F88 #88174F
tetradic
#4F8817 #178788 #501788 #881717
square
#4F8817 #178788 #501788 #881717
split-complementary
#4F8817 #171788 #881787
monochromatic
#121F05 #31540E #4F8817 #6DBC20 #8CDE3B

Accessibility & contrast

On white

4.32
#4F8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#4F8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8817
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8817#FFFFFF#000000##000000
##4F88171.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#4F8274
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4f8817;
/* rgb */ color: rgb(79, 136, 23);
/* oklch */ color: oklch(56.6% 0.151 133.6);
Tailwind
colors: {
  custom: {
    50: '#86ab5f',
    500: '#4f8817',
    950: '#000000',
  },
}
SCSS
$custom: #4f8817;
$custom-light: #86ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8817",
  "rgb": {
    "r": 79,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 90.265,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56587,
    "c": 0.15115,
    "h": 133.6
  },
  "luminance": 0.19332
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F8817

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

Preview Lab → · Contrast checker → · Palette generator →

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