#4C802F#4C802F

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

Color values

HEX#4C802F
RGBrgb(76, 128, 47)
HSLhsl(99, 46%, 34%)
HSVhsv(99, 63%, 50%)
CMYKcmyk(40.6%, 0%, 63.3%, 49.8%)
CIE-LABlab(48.49, -32.73, 37.64)
CIE-LCHlch(48.49, 49.88, 131.01°)
OKLaboklab(54.48% -0.0907 0.0876)
OKLCHoklch(54.48% 0.126 136)
XYZxyz(11.2125, 17.1795, 5.4140)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C802F #632F80
analogous
#75802F #4C802F #2F803B
triadic
#4C802F #2F4C80 #802F4C
tetradic
#4C802F #2F7580 #632F80 #803B2F
square
#4C802F #2F7580 #632F80 #803B2F
split-complementary
#4C802F #3B2F80 #802F75
monochromatic
#17260E #31531F #4C802F #67AD3F #87C663

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C802F#FFFFFF#000000##FFFFFF
##4C802F1.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)
#847626
Deuteranopia (green-blind)
#7D7235
Tritanopia (blue-blind)
#4A7B6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c802f;
/* rgb */ color: rgb(76, 128, 47);
/* oklch */ color: oklch(54.5% 0.126 136.0);
Tailwind
colors: {
  custom: {
    50: '#82a56b',
    500: '#4c802f',
    950: '#000000',
  },
}
SCSS
$custom: #4c802f;
$custom-light: #82a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c802f",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 98.519,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54484,
    "c": 0.12606,
    "h": 136
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#4C802F
secondary
#915EAD
accent
#52D6A7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4C802F

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

Preview Lab → · Contrast checker → · Palette generator →

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