#4F781A#4F781A

#4F781A is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.129 H 130.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4F781A
RGBrgb(79, 120, 26)
HSLhsl(86, 64%, 29%)
HSVhsv(86, 78%, 47%)
CMYKcmyk(34.2%, 0%, 78.3%, 52.9%)
CIE-LABlab(45.87, -29.62, 43.86)
CIE-LCHlch(45.87, 52.93, 124.03°)
OKLaboklab(52.34% -0.0841 0.0976)
OKLCHoklch(52.34% 0.129 130.7)
XYZxyz(10.1273, 15.1694, 3.3715)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F781A #431A78
analogous
#78721A #4F781A #20781A
triadic
#4F781A #1A4F78 #781A4F
tetradic
#4F781A #1A7872 #431A78 #781A20
square
#4F781A #1A7872 #431A78 #781A20
split-complementary
#4F781A #1A2078 #721A78
monochromatic
#111905 #2E460F #4F781A #70AA25 #90D438

Accessibility & contrast

On white

5.21
#4F781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4F781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F781A
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F781A#FFFFFF#000000##FFFFFF
##4F781A1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F05
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#517366
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4f781a;
/* rgb */ color: rgb(79, 120, 26);
/* oklch */ color: oklch(52.3% 0.129 130.7);
Tailwind
colors: {
  custom: {
    50: '#849f5e',
    500: '#4f781a',
    950: '#000000',
  },
}
SCSS
$custom: #4f781a;
$custom-light: #849f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f781a",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 86.17,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.12887,
    "h": 130.7
  },
  "luminance": 0.1517
}

Semantic roles & 50–950 ramp

primary
#4F781A
secondary
#7041AC
accent
#40E789
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F781A

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

Preview Lab → · Contrast checker → · Palette generator →

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