#4C8F1F#4C8F1F

#4C8F1F is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.4% C 0.157 H 135.9°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4C8F1F
RGBrgb(76, 143, 31)
HSLhsl(96, 64%, 34%)
HSVhsv(96, 78%, 56%)
CMYKcmyk(46.9%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.25, -40.56, 49.17)
CIE-LCHlch(53.25, 63.74, 129.52°)
OKLaboklab(58.35% -0.1131 0.1096)
OKLCHoklch(58.35% 0.157 135.9)
XYZxyz(13.0499, 21.2795, 4.7158)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8F1F #621F8F
analogous
#848F1F #4C8F1F #1F8F2A
triadic
#4C8F1F #1F4C8F #8F1F4C
tetradic
#4C8F1F #1F848F #621F8F #8F2A1F
square
#4C8F1F #1F848F #621F8F #8F2A1F
split-complementary
#4C8F1F #2A1F8F #8F1F84
monochromatic
#172A09 #315D14 #4C8F1F #67C12A #87D94F

Accessibility & contrast

On white

4.00
#4C8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#4C8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8F1F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8F1F#FFFFFF#000000##000000
##4C8F1F1.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948303
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#49897A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c8f1f;
/* rgb */ color: rgb(76, 143, 31);
/* oklch */ color: oklch(58.4% 0.157 135.9);
Tailwind
colors: {
  custom: {
    50: '#85b064',
    500: '#4c8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8f1f;
$custom-light: #85b064;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8f1f",
  "rgb": {
    "r": 76,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 95.893,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5835,
    "c": 0.15749,
    "h": 135.9
  },
  "luminance": 0.2128
}

Semantic roles & 50–950 ramp

primary
#4C8F1F
secondary
#904EBC
accent
#40E7A4
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4C8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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