#4D7B2A#4D7B2A

#4D7B2A is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.2% C 0.123 H 134.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4D7B2A
RGBrgb(77, 123, 42)
HSLhsl(94, 49%, 32%)
HSVhsv(94, 66%, 48%)
CMYKcmyk(37.4%, 0%, 65.9%, 51.8%)
CIE-LABlab(46.86, -30.56, 38.19)
CIE-LCHlch(46.86, 48.91, 128.66°)
OKLaboklab(53.15% -0.0852 0.0881)
OKLCHoklch(53.15% 0.123 134)
XYZxyz(10.5612, 15.9104, 4.7046)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7B2A #582A7B
analogous
#767B2A #4D7B2A #2A7B2F
triadic
#4D7B2A #2A4D7B #7B2A4D
tetradic
#4D7B2A #2A767B #582A7B #7B2F2A
square
#4D7B2A #2A767B #582A7B #7B2F2A
split-complementary
#4D7B2A #2F2A7B #7B2A76
monochromatic
#14200B #304D1A #4D7B2A #6AA93A #88C659

Accessibility & contrast

On white

5.02
#4D7B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4D7B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7B2A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7B2A#FFFFFF#000000##FFFFFF
##4D7B2A1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807120
Deuteranopia (green-blind)
#796E30
Tritanopia (blue-blind)
#4D766A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4d7b2a;
/* rgb */ color: rgb(77, 123, 42);
/* oklch */ color: oklch(53.2% 0.123 134.0);
Tailwind
colors: {
  custom: {
    50: '#82a167',
    500: '#4d7b2a',
    950: '#000000',
  },
}
SCSS
$custom: #4d7b2a;
$custom-light: #82a167;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7b2a",
  "rgb": {
    "r": 77,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 94.074,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53153,
    "c": 0.12258,
    "h": 134
  },
  "luminance": 0.15911
}

Semantic roles & 50–950 ramp

primary
#4D7B2A
secondary
#8655AC
accent
#4FD99D
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F06
muted
#7C7E7A

Preview Lab

Preview with #4D7B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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