#4F781C#4F781C

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

Color values

HEX#4F781C
RGBrgb(79, 120, 28)
HSLhsl(87, 62%, 29%)
HSVhsv(87, 77%, 47%)
CMYKcmyk(34.2%, 0%, 76.7%, 52.9%)
CIE-LABlab(45.88, -29.50, 43.13)
CIE-LCHlch(45.88, 52.25, 124.36°)
OKLaboklab(52.35% -0.0836 0.0964)
OKLCHoklch(52.35% 0.128 130.9)
XYZxyz(10.1504, 15.1787, 3.4934)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F781C #451C78
analogous
#78731C #4F781C #21781C
triadic
#4F781C #1C4F78 #781C4F
tetradic
#4F781C #1C7873 #451C78 #781C21
square
#4F781C #1C7873 #451C78 #781C21
split-complementary
#4F781C #1C2178 #731C78
monochromatic
#101906 #2E4610 #4F781C #70AA28 #8FD23D

Accessibility & contrast

On white

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

On black

4.04
#4F781C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F781C#FFFFFF#000000##FFFFFF
##4F781C1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f781c;
/* rgb */ color: rgb(79, 120, 28);
/* oklch */ color: oklch(52.3% 0.128 130.9);
Tailwind
colors: {
  custom: {
    50: '#849f5f',
    500: '#4f781c',
    950: '#000000',
  },
}
SCSS
$custom: #4f781c;
$custom-light: #849f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f781c",
  "rgb": {
    "r": 79,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 86.739,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52349,
    "c": 0.12764,
    "h": 130.9
  },
  "luminance": 0.15179
}

Semantic roles & 50–950 ramp

primary
#4F781C
secondary
#7244AC
accent
#43E58B
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F781C

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

Preview Lab → · Contrast checker → · Palette generator →

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