#4F802E#4F802E

#4F802E is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.125 H 134.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4F802E
RGBrgb(79, 128, 46)
HSLhsl(96, 47%, 34%)
HSVhsv(96, 64%, 50%)
CMYKcmyk(38.3%, 0%, 64.1%, 49.8%)
CIE-LABlab(48.63, -31.74, 38.32)
CIE-LCHlch(48.63, 49.76, 129.64°)
OKLaboklab(54.64% -0.0882 0.0889)
OKLCHoklch(54.64% 0.125 134.8)
XYZxyz(11.4365, 17.2973, 5.3204)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F802E #5F2E80
analogous
#78802E #4F802E #2E8036
triadic
#4F802E #2E4F80 #802E4F
tetradic
#4F802E #2E7880 #5F2E80 #80362E
square
#4F802E #2E7880 #5F2E80 #80362E
split-complementary
#4F802E #362E80 #802E78
monochromatic
#17260E #33531E #4F802E #6BAD3E #8AC762

Accessibility & contrast

On white

4.71
#4F802E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4F802E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F802E
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F802E#FFFFFF#000000##FFFFFF
##4F802E1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857624
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#4E7B6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f802e;
/* rgb */ color: rgb(79, 128, 46);
/* oklch */ color: oklch(54.6% 0.125 134.8);
Tailwind
colors: {
  custom: {
    50: '#84a56a',
    500: '#4f802e',
    950: '#000000',
  },
}
SCSS
$custom: #4f802e;
$custom-light: #84a56a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f802e",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 95.854,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54643,
    "c": 0.12524,
    "h": 134.8
  },
  "luminance": 0.17298
}

Semantic roles & 50–950 ramp

primary
#4F802E
secondary
#8D5DAD
accent
#51D7A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4F802E

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

Preview Lab → · Contrast checker → · Palette generator →

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