#4C781F#4C781F

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

Color values

HEX#4C781F
RGBrgb(76, 120, 31)
HSLhsl(90, 59%, 30%)
HSVhsv(90, 74%, 47%)
CMYKcmyk(36.7%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.73, -30.46, 41.76)
CIE-LCHlch(45.73, 51.69, 126.11°)
OKLaboklab(52.19% -0.0858 0.0941)
OKLCHoklch(52.19% 0.127 132.4)
XYZxyz(9.9442, 15.0680, 3.6805)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C781F #4B1F78
analogous
#78781F #4C781F #20781F
triadic
#4C781F #1F4C78 #781F4C
tetradic
#4C781F #1F7878 #4B1F78 #781F20
square
#4C781F #1F7878 #4B1F78 #781F20
split-complementary
#4C781F #1F2078 #781F78
monochromatic
#0F1806 #2D4712 #4C781F #6BA92C #89CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C781F#FFFFFF#000000##FFFFFF
##4C781F1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#4D7367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c781f;
/* rgb */ color: rgb(76, 120, 31);
/* oklch */ color: oklch(52.2% 0.127 132.4);
Tailwind
colors: {
  custom: {
    50: '#829f61',
    500: '#4c781f',
    950: '#000000',
  },
}
SCSS
$custom: #4c781f;
$custom-light: #829f61;
$custom-dark: #000000;
JSON
{
  "hex": "#4c781f",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 89.663,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52187,
    "c": 0.12734,
    "h": 132.4
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#4C781F
secondary
#7947AB
accent
#46E293
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C781F

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

Preview Lab → · Contrast checker → · Palette generator →

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