#4C7E12#4C7E12

#4C7E12 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.7% C 0.142 H 132.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4C7E12
RGBrgb(76, 126, 18)
HSLhsl(88, 75%, 28%)
HSVhsv(88, 86%, 49%)
CMYKcmyk(39.7%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.63, -33.95, 47.97)
CIE-LCHlch(47.63, 58.77, 125.29°)
OKLaboklab(53.72% -0.0961 0.105)
OKLCHoklch(53.72% 0.142 132.5)
XYZxyz(10.5504, 16.5014, 3.2013)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7E12 #44127E
analogous
#7E7A12 #4C7E12 #167E12
triadic
#4C7E12 #124C7E #7E124C
tetradic
#4C7E12 #127E7A #44127E #7E1216
square
#4C7E12 #127E7A #44127E #7E1216
split-complementary
#4C7E12 #12167E #7A127E
monochromatic
#101B04 #2C480A #4C7E12 #6CB41A #8CE12A

Accessibility & contrast

On white

4.88
#4C7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#4C7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7E12
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7E12#FFFFFF#000000##FFFFFF
##4C7E121.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847300
Deuteranopia (green-blind)
#7D701F
Tritanopia (blue-blind)
#4D786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4c7e12;
/* rgb */ color: rgb(76, 126, 18);
/* oklch */ color: oklch(53.7% 0.142 132.5);
Tailwind
colors: {
  custom: {
    50: '#83a45c',
    500: '#4c7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4c7e12;
$custom-light: #83a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7e12",
  "rgb": {
    "r": 76,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 87.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53715,
    "c": 0.1424,
    "h": 132.5
  },
  "luminance": 0.16502
}

Semantic roles & 50–950 ramp

primary
#4C7E12
secondary
#7138B4
accent
#36F28D
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4C7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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