#4C8012#4C8012

#4C8012 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.145 H 132.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4C8012
RGBrgb(76, 128, 18)
HSLhsl(88, 75%, 29%)
HSVhsv(88, 86%, 50%)
CMYKcmyk(40.6%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.28, -34.84, 48.56)
CIE-LCHlch(48.28, 59.76, 125.66°)
OKLaboklab(54.25% -0.0985 0.1063)
OKLCHoklch(54.25% 0.145 132.8)
XYZxyz(10.8087, 17.0180, 3.2874)
Luminance0.1702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8012 #461280
analogous
#807D12 #4C8012 #158012
triadic
#4C8012 #124C80 #80124C
tetradic
#4C8012 #12807D #461280 #801215
square
#4C8012 #12807D #461280 #801215
split-complementary
#4C8012 #121580 #7D1280
monochromatic
#101B04 #2C4A0A #4C8012 #6CB61A #8BE12B

Accessibility & contrast

On white

4.77
#4C8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4C8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8012
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8012#FFFFFF#000000##FFFFFF
##4C80121.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7F7120
Tritanopia (blue-blind)
#4C7A6C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4c8012;
/* rgb */ color: rgb(76, 128, 18);
/* oklch */ color: oklch(54.3% 0.145 132.8);
Tailwind
colors: {
  custom: {
    50: '#83a55c',
    500: '#4c8012',
    950: '#000000',
  },
}
SCSS
$custom: #4c8012;
$custom-light: #83a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8012",
  "rgb": {
    "r": 76,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 88.364,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.14493,
    "h": 132.8
  },
  "luminance": 0.17019
}

Semantic roles & 50–950 ramp

primary
#4C8012
secondary
#7338B6
accent
#36F28F
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C8012

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

Preview Lab → · Contrast checker → · Palette generator →

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