#4C8D1F#4C8D1F

#4C8D1F is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.8% C 0.155 H 135.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4C8D1F
RGBrgb(76, 141, 31)
HSLhsl(95, 64%, 34%)
HSVhsv(95, 78%, 55%)
CMYKcmyk(46.1%, 0%, 78%, 44.7%)
CIE-LABlab(52.60, -39.73, 48.54)
CIE-LCHlch(52.60, 62.73, 129.30°)
OKLaboklab(57.82% -0.1109 0.1083)
OKLCHoklch(57.82% 0.155 135.7)
XYZxyz(12.7524, 20.6844, 4.6166)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D1F #601F8D
analogous
#838D1F #4C8D1F #1F8D29
triadic
#4C8D1F #1F4C8D #8D1F4C
tetradic
#4C8D1F #1F838D #601F8D #8D291F
square
#4C8D1F #1F838D #601F8D #8D291F
split-complementary
#4C8D1F #291F8D #8D1F83
monochromatic
#162909 #315B14 #4C8D1F #67BF2A #87D84E

Accessibility & contrast

On white

4.09
#4C8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#4C8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8D1F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8D1F#FFFFFF#000000##000000
##4C8D1F1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4A8878
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4c8d1f;
/* rgb */ color: rgb(76, 141, 31);
/* oklch */ color: oklch(57.8% 0.155 135.7);
Tailwind
colors: {
  custom: {
    50: '#84af64',
    500: '#4c8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d1f;
$custom-light: #84af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d1f",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 95.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57815,
    "c": 0.15497,
    "h": 135.7
  },
  "luminance": 0.20685
}

Semantic roles & 50–950 ramp

primary
#4C8D1F
secondary
#8E4DBB
accent
#41E7A3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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