#4D781A#4D781A

#4D781A is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.130 H 131.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4D781A
RGBrgb(77, 120, 26)
HSLhsl(87, 64%, 29%)
HSVhsv(87, 78%, 47%)
CMYKcmyk(35.8%, 0%, 78.3%, 52.9%)
CIE-LABlab(45.75, -30.41, 43.71)
CIE-LCHlch(45.75, 53.25, 124.83°)
OKLaboklab(52.21% -0.0861 0.0974)
OKLCHoklch(52.21% 0.13 131.5)
XYZxyz(9.9634, 15.0849, 3.3638)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D781A #451A78
analogous
#78741A #4D781A #1E781A
triadic
#4D781A #1A4D78 #781A4D
tetradic
#4D781A #1A7874 #451A78 #781A1E
square
#4D781A #1A7874 #451A78 #781A1E
split-complementary
#4D781A #1A1E78 #741A78
monochromatic
#101905 #2D460F #4D781A #6DAA25 #8DD438

Accessibility & contrast

On white

5.23
#4D781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4D781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D781A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D781A#FFFFFF#000000##FFFFFF
##4D781A1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E05
Deuteranopia (green-blind)
#786B23
Tritanopia (blue-blind)
#4E7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d781a;
/* rgb */ color: rgb(77, 120, 26);
/* oklch */ color: oklch(52.2% 0.130 131.5);
Tailwind
colors: {
  custom: {
    50: '#839f5e',
    500: '#4d781a',
    950: '#000000',
  },
}
SCSS
$custom: #4d781a;
$custom-light: #839f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d781a",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 87.447,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5221,
    "c": 0.12998,
    "h": 131.5
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#4D781A
secondary
#7241AC
accent
#40E78D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D781A

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

Preview Lab → · Contrast checker → · Palette generator →

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