#4C8126#4C8126

#4C8126 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.7% C 0.135 H 134.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4C8126
RGBrgb(76, 129, 38)
HSLhsl(95, 54%, 33%)
HSVhsv(95, 71%, 51%)
CMYKcmyk(41.1%, 0%, 70.5%, 49.4%)
CIE-LABlab(48.73, -34.03, 41.96)
CIE-LCHlch(48.73, 54.02, 129.04°)
OKLaboklab(54.66% -0.0949 0.0956)
OKLCHoklch(54.66% 0.135 134.8)
XYZxyz(11.1804, 17.3764, 4.5982)
Luminance0.1738 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8126 #5B2681
analogous
#798126 #4C8126 #26812D
triadic
#4C8126 #264C81 #81264C
tetradic
#4C8126 #267981 #5B2681 #812D26
square
#4C8126 #267981 #5B2681 #812D26
split-complementary
#4C8126 #2D2681 #812679
monochromatic
#14220A #305218 #4C8126 #68B034 #87CD55

Accessibility & contrast

On white

4.69
#4C8126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4C8126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8126
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8126#FFFFFF#000000##FFFFFF
##4C81261.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867619
Deuteranopia (green-blind)
#7F722E
Tritanopia (blue-blind)
#4B7C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c8126;
/* rgb */ color: rgb(76, 129, 38);
/* oklch */ color: oklch(54.7% 0.135 134.8);
Tailwind
colors: {
  custom: {
    50: '#83a666',
    500: '#4c8126',
    950: '#000000',
  },
}
SCSS
$custom: #4c8126;
$custom-light: #83a666;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8126",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 94.945,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.13468,
    "h": 134.8
  },
  "luminance": 0.17377
}

Semantic roles & 50–950 ramp

primary
#4C8126
secondary
#8951B1
accent
#4ADEA0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8126

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

Preview Lab → · Contrast checker → · Palette generator →

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