#4F781B#4F781B

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

Color values

HEX#4F781B
RGBrgb(79, 120, 27)
HSLhsl(86, 63%, 29%)
HSVhsv(86, 78%, 47%)
CMYKcmyk(34.2%, 0%, 77.5%, 52.9%)
CIE-LABlab(45.87, -29.56, 43.50)
CIE-LCHlch(45.87, 52.59, 124.20°)
OKLaboklab(52.34% -0.0839 0.0971)
OKLCHoklch(52.34% 0.128 130.8)
XYZxyz(10.1387, 15.1740, 3.4314)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F781B #441B78
analogous
#78731B #4F781B #21781B
triadic
#4F781B #1B4F78 #781B4F
tetradic
#4F781B #1B7873 #441B78 #781B21
square
#4F781B #1B7873 #441B78 #781B21
split-complementary
#4F781B #1B2178 #731B78
monochromatic
#101906 #2E4610 #4F781B #70AA26 #90D33B

Accessibility & contrast

On white

5.20
#4F781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4F781B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F781B#FFFFFF#000000##FFFFFF
##4F781B1.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f781b;
/* rgb */ color: rgb(79, 120, 27);
/* oklch */ color: oklch(52.3% 0.128 130.8);
Tailwind
colors: {
  custom: {
    50: '#849f5f',
    500: '#4f781b',
    950: '#000000',
  },
}
SCSS
$custom: #4f781b;
$custom-light: #849f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f781b",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 86.452,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.12827,
    "h": 130.8
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#4F781B
secondary
#7143AC
accent
#41E68A
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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