#4D8017#4D8017

#4D8017 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#4D8017
RGBrgb(77, 128, 23)
HSLhsl(89, 70%, 30%)
HSVhsv(89, 82%, 50%)
CMYKcmyk(39.8%, 0%, 82%, 49.8%)
CIE-LABlab(48.36, -34.23, 47.18)
CIE-LCHlch(48.36, 58.29, 125.96°)
OKLaboklab(54.34% -0.0966 0.1042)
OKLCHoklch(54.34% 0.142 132.9)
XYZxyz(10.9342, 17.0775, 3.5306)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8017 #4A1780
analogous
#807F17 #4D8017 #198017
triadic
#4D8017 #174D80 #80174D
tetradic
#4D8017 #17807F #4A1780 #801719
square
#4D8017 #17807F #4A1780 #801719
split-complementary
#4D8017 #171980 #7F1780
monochromatic
#101A05 #2E4C0E #4D8017 #6CB420 #8BDB36

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D8017#FFFFFF#000000##FFFFFF
##4D80171.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)
#7F7123
Tritanopia (blue-blind)
#4D7B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4d8017;
/* rgb */ color: rgb(77, 128, 23);
/* oklch */ color: oklch(54.3% 0.142 132.9);
Tailwind
colors: {
  custom: {
    50: '#84a55e',
    500: '#4d8017',
    950: '#000000',
  },
}
SCSS
$custom: #4d8017;
$custom-light: #84a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8017",
  "rgb": {
    "r": 77,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 89.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54336,
    "c": 0.14209,
    "h": 132.9
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#4D8017
secondary
#783EB4
accent
#3BEC91
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D8017

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

Preview Lab → · Contrast checker → · Palette generator →

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