#4D7E20#4D7E20

#4D7E20 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.134 H 133.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4D7E20
RGBrgb(77, 126, 32)
HSLhsl(91, 59%, 31%)
HSVhsv(91, 75%, 49%)
CMYKcmyk(38.9%, 0%, 74.6%, 50.6%)
CIE-LABlab(47.76, -32.77, 43.42)
CIE-LCHlch(47.76, 54.40, 127.04°)
OKLaboklab(53.86% -0.092 0.0977)
OKLCHoklch(53.86% 0.134 133.3)
XYZxyz(10.7820, 16.6033, 4.0029)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E20 #51207E
analogous
#7C7E20 #4D7E20 #207E22
triadic
#4D7E20 #204D7E #7E204D
tetradic
#4D7E20 #207C7E #51207E #7E2220
square
#4D7E20 #207C7E #51207E #7E2220
split-complementary
#4D7E20 #22207E #7E207C
monochromatic
#111C07 #2F4D14 #4D7E20 #6BAF2C #89D048

Accessibility & contrast

On white

4.86
#4D7E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4D7E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E20
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E20#FFFFFF#000000##FFFFFF
##4D7E201.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740F
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#4D796C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4d7e20;
/* rgb */ color: rgb(77, 126, 32);
/* oklch */ color: oklch(53.9% 0.134 133.3);
Tailwind
colors: {
  custom: {
    50: '#83a462',
    500: '#4d7e20',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e20;
$custom-light: #83a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e20",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 91.277,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53861,
    "c": 0.13424,
    "h": 133.3
  },
  "luminance": 0.16604
}

Semantic roles & 50–950 ramp

primary
#4D7E20
secondary
#7F49B1
accent
#45E397
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4D7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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