#4F802B#4F802B

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

Color values

HEX#4F802B
RGBrgb(79, 128, 43)
HSLhsl(95, 50%, 34%)
HSVhsv(95, 66%, 50%)
CMYKcmyk(38.3%, 0%, 66.4%, 49.8%)
CIE-LABlab(48.60, -32.03, 39.67)
CIE-LCHlch(48.60, 50.99, 128.92°)
OKLaboklab(54.61% -0.0893 0.0914)
OKLCHoklch(54.61% 0.128 134.3)
XYZxyz(11.3794, 17.2745, 5.0198)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F802B #5C2B80
analogous
#79802B #4F802B #2B8031
triadic
#4F802B #2B4F80 #802B4F
tetradic
#4F802B #2B7980 #5C2B80 #80312B
square
#4F802B #2B7980 #5C2B80 #80312B
split-complementary
#4F802B #312B80 #802B79
monochromatic
#16240C #33521C #4F802B #6BAE3A #8AC95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F802B#FFFFFF#000000##FFFFFF
##4F802B1.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)
#857620
Deuteranopia (green-blind)
#7E7232
Tritanopia (blue-blind)
#4F7B6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4f802b;
/* rgb */ color: rgb(79, 128, 43);
/* oklch */ color: oklch(54.6% 0.128 134.3);
Tailwind
colors: {
  custom: {
    50: '#84a568',
    500: '#4f802b',
    950: '#000000',
  },
}
SCSS
$custom: #4f802b;
$custom-light: #84a568;
$custom-dark: #000000;
JSON
{
  "hex": "#4f802b",
  "rgb": {
    "r": 79,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 94.588,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54611,
    "c": 0.12775,
    "h": 134.3
  },
  "luminance": 0.17275
}

Semantic roles & 50–950 ramp

primary
#4F802B
secondary
#8A58AE
accent
#4FD99F
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4F802B

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

Preview Lab → · Contrast checker → · Palette generator →

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