#4D7F1B#4D7F1B

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

Color values

HEX#4D7F1B
RGBrgb(77, 127, 27)
HSLhsl(90, 65%, 30%)
HSVhsv(90, 79%, 50%)
CMYKcmyk(39.4%, 0%, 78.7%, 50.2%)
CIE-LABlab(48.05, -33.55, 45.57)
CIE-LCHlch(48.05, 56.59, 126.37°)
OKLaboklab(54.09% -0.0945 0.1014)
OKLCHoklch(54.09% 0.139 133)
XYZxyz(10.8476, 16.8352, 3.7146)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7F1B #4D1B7F
analogous
#7F7F1B #4D7F1B #1B7F1B
triadic
#4D7F1B #1B4D7F #7F1B4D
tetradic
#4D7F1B #1B7F7F #4D1B7F #7F1B1B
square
#4D7F1B #1B7F7F #4D1B7F #7F1B1B
split-complementary
#4D7F1B #1B1B7F #7F1B7F
monochromatic
#101A06 #2E4D10 #4D7F1B #6CB126 #8AD63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D7F1B#FFFFFF#000000##FFFFFF
##4D7F1B1.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)
#847503
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#4D7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7f1b;
/* rgb */ color: rgb(77, 127, 27);
/* oklch */ color: oklch(54.1% 0.139 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a460',
    500: '#4d7f1b',
    950: '#000000',
  },
}
SCSS
$custom: #4d7f1b;
$custom-light: #83a460;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7f1b",
  "rgb": {
    "r": 77,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 90,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54092,
    "c": 0.13865,
    "h": 133
  },
  "luminance": 0.16836
}

Semantic roles & 50–950 ramp

primary
#4D7F1B
secondary
#7B43B3
accent
#40E894
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D7F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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