#4F802A#4F802A

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

Color values

HEX#4F802A
RGBrgb(79, 128, 42)
HSLhsl(94, 51%, 33%)
HSVhsv(94, 67%, 50%)
CMYKcmyk(38.3%, 0%, 67.2%, 49.8%)
CIE-LABlab(48.60, -32.13, 40.11)
CIE-LCHlch(48.60, 51.39, 128.69°)
OKLaboklab(54.6% -0.0896 0.0922)
OKLCHoklch(54.6% 0.129 134.2)
XYZxyz(11.3613, 17.2673, 4.9243)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F802A #5B2A80
analogous
#7A802A #4F802A #2A8030
triadic
#4F802A #2A4F80 #802A4F
tetradic
#4F802A #2A7A80 #5B2A80 #80302A
square
#4F802A #2A7A80 #5B2A80 #80302A
split-complementary
#4F802A #302A80 #802A7A
monochromatic
#16240C #33521B #4F802A #6BAE39 #8BC95B

Accessibility & contrast

On white

4.72
#4F802A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#4F802A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F802A
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F802A#FFFFFF#000000##FFFFFF
##4F802A1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761F
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#4F7B6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f802a;
/* rgb */ color: rgb(79, 128, 42);
/* oklch */ color: oklch(54.6% 0.129 134.2);
Tailwind
colors: {
  custom: {
    50: '#84a568',
    500: '#4f802a',
    950: '#000000',
  },
}
SCSS
$custom: #4f802a;
$custom-light: #84a568;
$custom-dark: #000000;
JSON
{
  "hex": "#4f802a",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 94.186,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.546,
    "c": 0.12855,
    "h": 134.2
  },
  "luminance": 0.17268
}

Semantic roles & 50–950 ramp

primary
#4F802A
secondary
#8957AF
accent
#4EDA9E
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F802A

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

Preview Lab → · Contrast checker → · Palette generator →

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