#4F802F#4F802F

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

Color values

HEX#4F802F
RGBrgb(79, 128, 47)
HSLhsl(96, 46%, 34%)
HSVhsv(96, 63%, 50%)
CMYKcmyk(38.3%, 0%, 63.3%, 49.8%)
CIE-LABlab(48.64, -31.64, 37.86)
CIE-LCHlch(48.64, 49.34, 129.89°)
OKLaboklab(54.65% -0.0879 0.088)
OKLCHoklch(54.65% 0.124 135)
XYZxyz(11.4565, 17.3053, 5.4254)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F802F #602F80
analogous
#78802F #4F802F #2F8037
triadic
#4F802F #2F4F80 #802F4F
tetradic
#4F802F #2F7880 #602F80 #80372F
square
#4F802F #2F7880 #602F80 #80372F
split-complementary
#4F802F #372F80 #802F78
monochromatic
#18260E #33531F #4F802F #6BAD3F #8AC663

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F802F#FFFFFF#000000##FFFFFF
##4F802F1.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)
#857626
Deuteranopia (green-blind)
#7E7235
Tritanopia (blue-blind)
#4E7B6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4f802f;
/* rgb */ color: rgb(79, 128, 47);
/* oklch */ color: oklch(54.7% 0.124 135.0);
Tailwind
colors: {
  custom: {
    50: '#84a56b',
    500: '#4f802f',
    950: '#000000',
  },
}
SCSS
$custom: #4f802f;
$custom-light: #84a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f802f",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 96.296,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54654,
    "c": 0.12437,
    "h": 135
  },
  "luminance": 0.17306
}

Semantic roles & 50–950 ramp

primary
#4F802F
secondary
#8E5EAD
accent
#52D6A2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4F802F

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

Preview Lab → · Contrast checker → · Palette generator →

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