#4D7D1F#4D7D1F

#4D7D1F is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.6% C 0.134 H 133.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4D7D1F
RGBrgb(77, 125, 31)
HSLhsl(91, 60%, 31%)
HSVhsv(91, 75%, 49%)
CMYKcmyk(38.4%, 0%, 75.2%, 51%)
CIE-LABlab(47.42, -32.39, 43.48)
CIE-LCHlch(47.42, 54.21, 126.68°)
OKLaboklab(53.59% -0.0911 0.0977)
OKLCHoklch(53.59% 0.134 133)
XYZxyz(10.6413, 16.3435, 3.8900)
Luminance0.1634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7D1F #4F1F7D
analogous
#7C7D1F #4D7D1F #1F7D20
triadic
#4D7D1F #1F4D7D #7D1F4D
tetradic
#4D7D1F #1F7C7D #4F1F7D #7D201F
square
#4D7D1F #1F7C7D #4F1F7D #7D201F
split-complementary
#4D7D1F #201F7D #7D1F7C
monochromatic
#111B07 #2F4C13 #4D7D1F #6BAE2B #8AD145

Accessibility & contrast

On white

4.92
#4D7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#4D7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7D1F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7D1F#FFFFFF#000000##FFFFFF
##4D7D1F1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730E
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#4D786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4d7d1f;
/* rgb */ color: rgb(77, 125, 31);
/* oklch */ color: oklch(53.6% 0.134 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a361',
    500: '#4d7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d7d1f;
$custom-light: #83a361;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7d1f",
  "rgb": {
    "r": 77,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 90.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53586,
    "c": 0.13356,
    "h": 133
  },
  "luminance": 0.16344
}

Semantic roles & 50–950 ramp

primary
#4D7D1F
secondary
#7D48B0
accent
#44E396
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4D7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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