#4C781B#4C781B

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

Color values

HEX#4C781B
RGBrgb(76, 120, 27)
HSLhsl(88, 63%, 29%)
HSVhsv(88, 78%, 47%)
CMYKcmyk(36.7%, 0%, 77.5%, 52.9%)
CIE-LABlab(45.70, -30.74, 43.28)
CIE-LCHlch(45.70, 53.08, 125.38°)
OKLaboklab(52.16% -0.0869 0.0966)
OKLCHoklch(52.16% 0.13 131.9)
XYZxyz(9.8947, 15.0482, 3.4199)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C781B #471B78
analogous
#78761B #4C781B #1E781B
triadic
#4C781B #1B4C78 #781B4C
tetradic
#4C781B #1B7876 #471B78 #781B1E
square
#4C781B #1B7876 #471B78 #781B1E
split-complementary
#4C781B #1B1E78 #761B78
monochromatic
#101906 #2C4610 #4C781B #6CAA26 #8BD33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C781B#FFFFFF#000000##FFFFFF
##4C781B1.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)
#7D6E07
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#4D7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4c781b;
/* rgb */ color: rgb(76, 120, 27);
/* oklch */ color: oklch(52.2% 0.130 131.9);
Tailwind
colors: {
  custom: {
    50: '#829f5f',
    500: '#4c781b',
    950: '#000000',
  },
}
SCSS
$custom: #4c781b;
$custom-light: #829f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c781b",
  "rgb": {
    "r": 76,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 88.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52156,
    "c": 0.12994,
    "h": 131.9
  },
  "luminance": 0.15049
}

Semantic roles & 50–950 ramp

primary
#4C781B
secondary
#7543AC
accent
#41E68F
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C781B

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

Preview Lab → · Contrast checker → · Palette generator →

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