#4D7F1A#4D7F1A

#4D7F1A is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.139 H 132.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4D7F1A
RGBrgb(77, 127, 26)
HSLhsl(90, 66%, 30%)
HSVhsv(90, 80%, 50%)
CMYKcmyk(39.4%, 0%, 79.5%, 50.2%)
CIE-LABlab(48.05, -33.61, 45.91)
CIE-LCHlch(48.05, 56.90, 126.21°)
OKLaboklab(54.09% -0.0948 0.102)
OKLCHoklch(54.09% 0.139 132.9)
XYZxyz(10.8362, 16.8306, 3.6548)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F1A #4C1A7F
analogous
#7F7E1A #4D7F1A #1B7F1A
triadic
#4D7F1A #1A4D7F #7F1A4D
tetradic
#4D7F1A #1A7F7E #4C1A7F #7F1A1B
square
#4D7F1A #1A7F7E #4C1A7F #7F1A1B
split-complementary
#4D7F1A #1A1B7F #7E1A7F
monochromatic
#0F1905 #2E4C10 #4D7F1A #6CB224 #8AD73C

Accessibility & contrast

On white

4.81
#4D7F1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D7F1A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7F1A#FFFFFF#000000##FFFFFF
##4D7F1A1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847501
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#4D7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7f1a;
/* rgb */ color: rgb(77, 127, 26);
/* oklch */ color: oklch(54.1% 0.139 132.9);
Tailwind
colors: {
  custom: {
    50: '#84a45f',
    500: '#4d7f1a',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f1a;
$custom-light: #84a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f1a",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 89.703,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.54086,
    "c": 0.13922,
    "h": 132.9
  },
  "luminance": 0.16831
}

Semantic roles & 50–950 ramp

primary
#4D7F1A
secondary
#7A42B3
accent
#3FE993
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D7F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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