#4D7F20#4D7F20

#4D7F20 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.1% C 0.136 H 133.5°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4D7F20
RGBrgb(77, 127, 32)
HSLhsl(92, 60%, 31%)
HSVhsv(92, 75%, 50%)
CMYKcmyk(39.4%, 0%, 74.8%, 50.2%)
CIE-LABlab(48.08, -33.22, 43.75)
CIE-LCHlch(48.08, 54.94, 127.21°)
OKLaboklab(54.13% -0.0933 0.0984)
OKLCHoklch(54.13% 0.136 133.5)
XYZxyz(10.9105, 16.8603, 4.0457)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F20 #52207F
analogous
#7C7F20 #4D7F20 #207F22
triadic
#4D7F20 #204D7F #7F204D
tetradic
#4D7F20 #207C7F #52207F #7F2220
square
#4D7F20 #207C7F #52207F #7F2220
split-complementary
#4D7F20 #22207F #7F207C
monochromatic
#121D07 #2F4E14 #4D7F20 #6BB02C #89D148

Accessibility & contrast

On white

4.80
#4D7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4D7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7F20
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7F20#FFFFFF#000000##FFFFFF
##4D7F201.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#7D7129
Tritanopia (blue-blind)
#4D7A6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7f20;
/* rgb */ color: rgb(77, 127, 32);
/* oklch */ color: oklch(54.1% 0.136 133.5);
Tailwind
colors: {
  custom: {
    50: '#83a462',
    500: '#4d7f20',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f20;
$custom-light: #83a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f20",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 91.579,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.13558,
    "h": 133.5
  },
  "luminance": 0.16861
}

Semantic roles & 50–950 ramp

primary
#4D7F20
secondary
#8049B2
accent
#45E398
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4D7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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