#4C781C#4C781C

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

Color values

HEX#4C781C
RGBrgb(76, 120, 28)
HSLhsl(89, 62%, 29%)
HSVhsv(89, 77%, 47%)
CMYKcmyk(36.7%, 0%, 76.7%, 52.9%)
CIE-LABlab(45.71, -30.67, 42.91)
CIE-LCHlch(45.71, 52.74, 125.56°)
OKLaboklab(52.16% -0.0866 0.096)
OKLCHoklch(52.16% 0.129 132)
XYZxyz(9.9064, 15.0529, 3.4819)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C781C #481C78
analogous
#78761C #4C781C #1E781C
triadic
#4C781C #1C4C78 #781C4C
tetradic
#4C781C #1C7876 #481C78 #781C1E
square
#4C781C #1C7876 #481C78 #781C1E
split-complementary
#4C781C #1C1E78 #761C78
monochromatic
#101906 #2D4610 #4C781C #6BAA28 #8AD23D

Accessibility & contrast

On white

5.24
#4C781C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#4C781C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C781C
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C781C#FFFFFF#000000##FFFFFF
##4C781C1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0A
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#4D7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c781c;
/* rgb */ color: rgb(76, 120, 28);
/* oklch */ color: oklch(52.2% 0.129 132.0);
Tailwind
colors: {
  custom: {
    50: '#829f5f',
    500: '#4c781c',
    950: '#000000',
  },
}
SCSS
$custom: #4c781c;
$custom-light: #829f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c781c",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 88.696,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52164,
    "c": 0.12932,
    "h": 132
  },
  "luminance": 0.15053
}

Semantic roles & 50–950 ramp

primary
#4C781C
secondary
#7644AC
accent
#43E590
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C781C

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

Preview Lab → · Contrast checker → · Palette generator →

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