#4C802D#4C802D

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

Color values

HEX#4C802D
RGBrgb(76, 128, 45)
HSLhsl(98, 48%, 34%)
HSVhsv(98, 65%, 50%)
CMYKcmyk(40.6%, 0%, 64.8%, 49.8%)
CIE-LABlab(48.47, -32.94, 38.56)
CIE-LCHlch(48.47, 50.71, 130.51°)
OKLaboklab(54.46% -0.0914 0.0893)
OKLCHoklch(54.46% 0.128 135.7)
XYZxyz(11.1730, 17.1637, 5.2063)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C802D #612D80
analogous
#76802D #4C802D #2D8038
triadic
#4C802D #2D4C80 #802D4C
tetradic
#4C802D #2D7680 #612D80 #80382D
square
#4C802D #2D7680 #612D80 #80382D
split-complementary
#4C802D #382D80 #802D76
monochromatic
#16250D #31531D #4C802D #67AD3D #87C760

Accessibility & contrast

On white

4.74
#4C802D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4C802D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C802D
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C802D#FFFFFF#000000##FFFFFF
##4C802D1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857623
Deuteranopia (green-blind)
#7D7134
Tritanopia (blue-blind)
#4B7B6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c802d;
/* rgb */ color: rgb(76, 128, 45);
/* oklch */ color: oklch(54.5% 0.128 135.7);
Tailwind
colors: {
  custom: {
    50: '#82a56a',
    500: '#4c802d',
    950: '#000000',
  },
}
SCSS
$custom: #4c802d;
$custom-light: #82a56a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c802d",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 97.59,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54461,
    "c": 0.12777,
    "h": 135.7
  },
  "luminance": 0.17164
}

Semantic roles & 50–950 ramp

primary
#4C802D
secondary
#8F5BAE
accent
#50D8A5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4C802D

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

Preview Lab → · Contrast checker → · Palette generator →

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