#4C8A1F#4C8A1F

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

Color values

HEX#4C8A1F
RGBrgb(76, 138, 31)
HSLhsl(95, 63%, 33%)
HSVhsv(95, 78%, 54%)
CMYKcmyk(44.9%, 0%, 77.5%, 45.9%)
CIE-LABlab(51.62, -38.47, 47.59)
CIE-LCHlch(51.62, 61.19, 128.95°)
OKLaboklab(57.01% -0.1074 0.1063)
OKLCHoklch(57.01% 0.151 135.3)
XYZxyz(12.3160, 19.8117, 4.4711)
Luminance0.1981 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8A1F #5D1F8A
analogous
#818A1F #4C8A1F #1F8A27
triadic
#4C8A1F #1F4C8A #8A1F4C
tetradic
#4C8A1F #1F818A #5D1F8A #8A271F
square
#4C8A1F #1F818A #5D1F8A #8A271F
split-complementary
#4C8A1F #271F8A #8A1F81
monochromatic
#152609 #305814 #4C8A1F #68BC2A #87D74C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8A1F#FFFFFF#000000##000000
##4C8A1F1.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)
#8F7E06
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#4A8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4c8a1f;
/* rgb */ color: rgb(76, 138, 31);
/* oklch */ color: oklch(57.0% 0.151 135.3);
Tailwind
colors: {
  custom: {
    50: '#84ad63',
    500: '#4c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8a1f;
$custom-light: #84ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8a1f",
  "rgb": {
    "r": 76,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 94.766,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.15115,
    "h": 135.3
  },
  "luminance": 0.19812
}

Semantic roles & 50–950 ramp

primary
#4C8A1F
secondary
#8B4BBA
accent
#41E6A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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