#4C8127#4C8127

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

Color values

HEX#4C8127
RGBrgb(76, 129, 39)
HSLhsl(95, 54%, 33%)
HSVhsv(95, 70%, 51%)
CMYKcmyk(41.1%, 0%, 69.8%, 49.4%)
CIE-LABlab(48.74, -33.94, 41.54)
CIE-LCHlch(48.74, 53.64, 129.25°)
OKLaboklab(54.67% -0.0946 0.0948)
OKLCHoklch(54.67% 0.134 134.9)
XYZxyz(11.1967, 17.3829, 4.6843)
Luminance0.1738 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8127 #5C2781
analogous
#798127 #4C8127 #27812F
triadic
#4C8127 #274C81 #81274C
tetradic
#4C8127 #277981 #5C2781 #812F27
square
#4C8127 #277981 #5C2781 #812F27
split-complementary
#4C8127 #2F2781 #812779
monochromatic
#15230B #305219 #4C8127 #68B035 #87CC56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8127#FFFFFF#000000##FFFFFF
##4C81271.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)
#86771A
Deuteranopia (green-blind)
#7F722F
Tritanopia (blue-blind)
#4B7C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c8127;
/* rgb */ color: rgb(76, 129, 39);
/* oklch */ color: oklch(54.7% 0.134 134.9);
Tailwind
colors: {
  custom: {
    50: '#82a666',
    500: '#4c8127',
    950: '#000000',
  },
}
SCSS
$custom: #4c8127;
$custom-light: #82a666;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8127",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 39
  },
  "hsl": {
    "h": 95.333,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54667,
    "c": 0.13393,
    "h": 134.9
  },
  "luminance": 0.17383
}

Semantic roles & 50–950 ramp

primary
#4C8127
secondary
#8A53B1
accent
#4BDDA1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8127

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

Preview Lab → · Contrast checker → · Palette generator →

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