#4C8E1F#4C8E1F

#4C8E1F is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.1% C 0.156 H 135.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4C8E1F
RGBrgb(76, 142, 31)
HSLhsl(96, 64%, 34%)
HSVhsv(96, 78%, 56%)
CMYKcmyk(46.5%, 0%, 78.2%, 44.3%)
CIE-LABlab(52.93, -40.15, 48.85)
CIE-LCHlch(52.93, 63.23, 129.41°)
OKLaboklab(58.08% -0.112 0.1089)
OKLCHoklch(58.08% 0.156 135.8)
XYZxyz(12.9005, 20.9806, 4.6660)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8E1F #611F8E
analogous
#848E1F #4C8E1F #1F8E2A
triadic
#4C8E1F #1F4C8E #8E1F4C
tetradic
#4C8E1F #1F848E #611F8E #8E2A1F
square
#4C8E1F #1F848E #611F8E #8E2A1F
split-complementary
#4C8E1F #2A1F8E #8E1F84
monochromatic
#162A09 #315C14 #4C8E1F #67C02A #87D94F

Accessibility & contrast

On white

4.04
#4C8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#4C8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8E1F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8E1F#FFFFFF#000000##000000
##4C8E1F1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938204
Deuteranopia (green-blind)
#8B7C2B
Tritanopia (blue-blind)
#498879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8e1f;
/* rgb */ color: rgb(76, 142, 31);
/* oklch */ color: oklch(58.1% 0.156 135.8);
Tailwind
colors: {
  custom: {
    50: '#84af64',
    500: '#4c8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8e1f;
$custom-light: #84af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8e1f",
  "rgb": {
    "r": 76,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 95.676,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58083,
    "c": 0.15623,
    "h": 135.8
  },
  "luminance": 0.20981
}

Semantic roles & 50–950 ramp

primary
#4C8E1F
secondary
#8F4DBB
accent
#41E7A4
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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