#4D802F#4D802F

#4D802F is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.5% C 0.126 H 135.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#4D802F
RGBrgb(77, 128, 47)
HSLhsl(98, 46%, 34%)
HSVhsv(98, 63%, 50%)
CMYKcmyk(39.8%, 0%, 63.3%, 49.8%)
CIE-LABlab(48.54, -32.37, 37.71)
CIE-LCHlch(48.54, 49.70, 130.65°)
OKLaboklab(54.54% -0.0898 0.0877)
OKLCHoklch(54.54% 0.126 135.7)
XYZxyz(11.2926, 17.2208, 5.4177)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D802F #622F80
analogous
#76802F #4D802F #2F803A
triadic
#4D802F #2F4D80 #802F4D
tetradic
#4D802F #2F7680 #622F80 #803A2F
square
#4D802F #2F7680 #622F80 #803A2F
split-complementary
#4D802F #3A2F80 #802F76
monochromatic
#17260E #32531F #4D802F #68AD3F #88C663

Accessibility & contrast

On white

4.73
#4D802F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#4D802F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D802F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D802F#FFFFFF#000000##FFFFFF
##4D802F1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#7D7235
Tritanopia (blue-blind)
#4C7B6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4d802f;
/* rgb */ color: rgb(77, 128, 47);
/* oklch */ color: oklch(54.5% 0.126 135.7);
Tailwind
colors: {
  custom: {
    50: '#83a56b',
    500: '#4d802f',
    950: '#000000',
  },
}
SCSS
$custom: #4d802f;
$custom-light: #83a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d802f",
  "rgb": {
    "r": 77,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 97.778,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5454,
    "c": 0.1255,
    "h": 135.7
  },
  "luminance": 0.17221
}

Semantic roles & 50–950 ramp

primary
#4D802F
secondary
#905EAD
accent
#52D6A5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4D802F

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

Preview Lab → · Contrast checker → · Palette generator →

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