#4D771B#4D771B

#4D771B is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.9% C 0.128 H 131.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#4D771B
RGBrgb(77, 119, 27)
HSLhsl(87, 63%, 29%)
HSVhsv(87, 77%, 47%)
CMYKcmyk(35.3%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.43, -29.88, 43.03)
CIE-LCHlch(45.43, 52.39, 124.78°)
OKLaboklab(51.95% -0.0846 0.0961)
OKLCHoklch(51.95% 0.128 131.4)
XYZxyz(9.8551, 14.8502, 3.3838)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D771B #451B77
analogous
#77731B #4D771B #1F771B
triadic
#4D771B #1B4D77 #771B4D
tetradic
#4D771B #1B7773 #451B77 #771B1F
square
#4D771B #1B7773 #451B77 #771B1F
split-complementary
#4D771B #1B1F77 #731B77
monochromatic
#101906 #2D4510 #4D771B #6DA926 #8DD23A

Accessibility & contrast

On white

5.29
#4D771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#4D771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D771B
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D771B#FFFFFF#000000##FFFFFF
##4D771B1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E08
Deuteranopia (green-blind)
#776A24
Tritanopia (blue-blind)
#4E7265
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d771b;
/* rgb */ color: rgb(77, 119, 27);
/* oklch */ color: oklch(51.9% 0.128 131.4);
Tailwind
colors: {
  custom: {
    50: '#839e5f',
    500: '#4d771b',
    950: '#000000',
  },
}
SCSS
$custom: #4d771b;
$custom-light: #839e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d771b",
  "rgb": {
    "r": 77,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 87.391,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5195,
    "c": 0.12803,
    "h": 131.4
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#4D771B
secondary
#7242AB
accent
#42E68D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D771B

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

Preview Lab → · Contrast checker → · Palette generator →

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