#4D7A20#4D7A20

#4D7A20 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.129 H 132.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4D7A20
RGBrgb(77, 122, 32)
HSLhsl(90, 58%, 30%)
HSVhsv(90, 74%, 48%)
CMYKcmyk(36.9%, 0%, 73.8%, 52.2%)
CIE-LABlab(46.45, -30.93, 42.10)
CIE-LCHlch(46.45, 52.24, 126.31°)
OKLaboklab(52.79% -0.0871 0.095)
OKLCHoklch(52.79% 0.129 132.5)
XYZxyz(10.2807, 15.6007, 3.8358)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7A20 #4D207A
analogous
#7A7A20 #4D7A20 #207A20
triadic
#4D7A20 #204D7A #7A204D
tetradic
#4D7A20 #207A7A #4D207A #7A2020
square
#4D7A20 #207A7A #4D207A #7A2020
split-complementary
#4D7A20 #20207A #7A207A
monochromatic
#101907 #2E4A13 #4D7A20 #6CAA2D #8ACE46

Accessibility & contrast

On white

5.10
#4D7A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#4D7A20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7A20
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7A20#FFFFFF#000000##FFFFFF
##4D7A201.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7011
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#4E7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4d7a20;
/* rgb */ color: rgb(77, 122, 32);
/* oklch */ color: oklch(52.8% 0.129 132.5);
Tailwind
colors: {
  custom: {
    50: '#83a162',
    500: '#4d7a20',
    950: '#000000',
  },
}
SCSS
$custom: #4d7a20;
$custom-light: #83a162;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7a20",
  "rgb": {
    "r": 77,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 90,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52791,
    "c": 0.12883,
    "h": 132.5
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#4D7A20
secondary
#7B49AD
accent
#46E294
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4D7A20

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

Preview Lab → · Contrast checker → · Palette generator →

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