#4C8C1C#4C8C1C

#4C8C1C is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.5% C 0.155 H 135.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4C8C1C
RGBrgb(76, 140, 28)
HSLhsl(94, 67%, 33%)
HSVhsv(94, 80%, 55%)
CMYKcmyk(45.7%, 0%, 80%, 45.1%)
CIE-LABlab(52.26, -39.49, 49.22)
CIE-LCHlch(52.26, 63.10, 128.74°)
OKLaboklab(57.53% -0.1104 0.1092)
OKLCHoklch(57.53% 0.155 135.3)
XYZxyz(12.5679, 20.3758, 4.3691)
Luminance0.2038 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8C1C #5C1C8C
analogous
#848C1C #4C8C1C #1C8C24
triadic
#4C8C1C #1C4C8C #8C1C4C
tetradic
#4C8C1C #1C848C #5C1C8C #8C241C
square
#4C8C1C #1C848C #5C1C8C #8C241C
split-complementary
#4C8C1C #241C8C #8C1C84
monochromatic
#152608 #305912 #4C8C1C #68BF26 #87DA48

Accessibility & contrast

On white

4.14
#4C8C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#4C8C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8C1C
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8C1C#FFFFFF#000000##000000
##4C8C1C1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#4A8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4c8c1c;
/* rgb */ color: rgb(76, 140, 28);
/* oklch */ color: oklch(57.5% 0.155 135.3);
Tailwind
colors: {
  custom: {
    50: '#84ae62',
    500: '#4c8c1c',
    950: '#000000',
  },
}
SCSS
$custom: #4c8c1c;
$custom-light: #84ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8c1c",
  "rgb": {
    "r": 76,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 94.286,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57528,
    "c": 0.15532,
    "h": 135.3
  },
  "luminance": 0.20377
}

Semantic roles & 50–950 ramp

primary
#4C8C1C
secondary
#8A48BC
accent
#3EEAA0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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