#4F8728#4F8728

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

Color values

HEX#4F8728
RGBrgb(79, 135, 40)
HSLhsl(95, 54%, 34%)
HSVhsv(95, 70%, 53%)
CMYKcmyk(41.5%, 0%, 70.4%, 47.1%)
CIE-LABlab(50.85, -35.45, 43.38)
CIE-LCHlch(50.85, 56.03, 129.26°)
OKLaboklab(56.44% -0.0988 0.0988)
OKLCHoklch(56.44% 0.14 135)
XYZxyz(12.2712, 19.1428, 5.0554)
Luminance0.1914 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8728 #602887
analogous
#7F8728 #4F8728 #288730
triadic
#4F8728 #284F87 #87284F
tetradic
#4F8728 #287F87 #602887 #873028
square
#4F8728 #287F87 #602887 #873028
split-complementary
#4F8728 #302887 #87287F
monochromatic
#18290C #33581A #4F8728 #6BB636 #8ACE5B

Accessibility & contrast

On white

4.35
#4F8728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#4F8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8728
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8728#FFFFFF#000000##000000
##4F87281.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1A
Deuteranopia (green-blind)
#847730
Tritanopia (blue-blind)
#4E8274
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4f8728;
/* rgb */ color: rgb(79, 135, 40);
/* oklch */ color: oklch(56.4% 0.140 135.0);
Tailwind
colors: {
  custom: {
    50: '#85aa67',
    500: '#4f8728',
    950: '#000000',
  },
}
SCSS
$custom: #4f8728;
$custom-light: #85aa67;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8728",
  "rgb": {
    "r": 79,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 95.368,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.13974,
    "h": 135
  },
  "luminance": 0.19143
}

Semantic roles & 50–950 ramp

primary
#4F8728
secondary
#8E57B4
accent
#4ADEA1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4F8728

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

Preview Lab → · Contrast checker → · Palette generator →

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