#4C8A1C#4C8A1C

#4C8A1C is a mid, vivid yellow-green. Relative luminance 0.198; OKLCH L 57.0% C 0.153 H 135.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4C8A1C
RGBrgb(76, 138, 28)
HSLhsl(94, 66%, 33%)
HSVhsv(94, 80%, 54%)
CMYKcmyk(44.9%, 0%, 79.7%, 45.9%)
CIE-LABlab(51.61, -38.65, 48.60)
CIE-LCHlch(51.61, 62.10, 128.49°)
OKLaboklab(56.99% -0.1081 0.1079)
OKLCHoklch(56.99% 0.153 135.1)
XYZxyz(12.2783, 19.7966, 4.2725)
Luminance0.1980 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8A1C #5A1C8A
analogous
#838A1C #4C8A1C #1C8A23
triadic
#4C8A1C #1C4C8A #8A1C4C
tetradic
#4C8A1C #1C838A #5A1C8A #8A231C
square
#4C8A1C #1C838A #5A1C8A #8A231C
split-complementary
#4C8A1C #231C8A #8A1C83
monochromatic
#142407 #305712 #4C8A1C #68BD26 #87DA47

Accessibility & contrast

On white

4.23
#4C8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#4C8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8A1C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8A1C#FFFFFF#000000##000000
##4C8A1C1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#4A8476
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4c8a1c;
/* rgb */ color: rgb(76, 138, 28);
/* oklch */ color: oklch(57.0% 0.153 135.1);
Tailwind
colors: {
  custom: {
    50: '#84ac62',
    500: '#4c8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #4c8a1c;
$custom-light: #84ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8a1c",
  "rgb": {
    "r": 76,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 93.818,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56993,
    "c": 0.1528,
    "h": 135.1
  },
  "luminance": 0.19797
}

Semantic roles & 50–950 ramp

primary
#4C8A1C
secondary
#8846BB
accent
#3FE99F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4C8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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