#4D8018#4D8018

#4D8018 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.3% C 0.142 H 132.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4D8018
RGBrgb(77, 128, 24)
HSLhsl(89, 68%, 30%)
HSVhsv(89, 81%, 50%)
CMYKcmyk(39.8%, 0%, 81.3%, 49.8%)
CIE-LABlab(48.36, -34.17, 46.87)
CIE-LCHlch(48.36, 58.01, 126.10°)
OKLaboklab(54.34% -0.0964 0.1037)
OKLCHoklch(54.34% 0.142 132.9)
XYZxyz(10.9445, 17.0816, 3.5844)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8018 #4B1880
analogous
#807F18 #4D8018 #198018
triadic
#4D8018 #184D80 #80184D
tetradic
#4D8018 #18807F #4B1880 #801819
square
#4D8018 #18807F #4B1880 #801819
split-complementary
#4D8018 #181980 #7F1880
monochromatic
#101A05 #2E4C0E #4D8018 #6CB422 #8BDA39

Accessibility & contrast

On white

4.76
#4D8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#4D8018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D8018
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8018#FFFFFF#000000##FFFFFF
##4D80181.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7F7124
Tritanopia (blue-blind)
#4D7B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4d8018;
/* rgb */ color: rgb(77, 128, 24);
/* oklch */ color: oklch(54.3% 0.142 132.9);
Tailwind
colors: {
  custom: {
    50: '#84a55f',
    500: '#4d8018',
    950: '#000000',
  },
}
SCSS
$custom: #4d8018;
$custom-light: #84a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8018",
  "rgb": {
    "r": 77,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 89.423,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54341,
    "c": 0.14158,
    "h": 132.9
  },
  "luminance": 0.17082
}

Semantic roles & 50–950 ramp

primary
#4D8018
secondary
#7940B4
accent
#3DEB92
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D8018

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

Preview Lab → · Contrast checker → · Palette generator →

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