#4C7F12#4C7F12

#4C7F12 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.0% C 0.144 H 132.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4C7F12
RGBrgb(76, 127, 18)
HSLhsl(88, 75%, 28%)
HSVhsv(88, 86%, 50%)
CMYKcmyk(40.2%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.95, -34.40, 48.26)
CIE-LCHlch(47.95, 59.27, 125.48°)
OKLaboklab(53.98% -0.0973 0.1057)
OKLCHoklch(53.98% 0.144 132.7)
XYZxyz(10.6789, 16.7584, 3.2442)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7F12 #45127F
analogous
#7F7B12 #4C7F12 #167F12
triadic
#4C7F12 #124C7F #7F124C
tetradic
#4C7F12 #127F7B #45127F #7F1216
square
#4C7F12 #127F7B #45127F #7F1216
split-complementary
#4C7F12 #12167F #7B127F
monochromatic
#101B04 #2C490A #4C7F12 #6CB51A #8CE12B

Accessibility & contrast

On white

4.83
#4C7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#4C7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7F12
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7F12#FFFFFF#000000##FFFFFF
##4C7F121.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7E7020
Tritanopia (blue-blind)
#4D796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4c7f12;
/* rgb */ color: rgb(76, 127, 18);
/* oklch */ color: oklch(54.0% 0.144 132.7);
Tailwind
colors: {
  custom: {
    50: '#83a45c',
    500: '#4c7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4c7f12;
$custom-light: #83a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7f12",
  "rgb": {
    "r": 76,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 88.073,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53984,
    "c": 0.14366,
    "h": 132.7
  },
  "luminance": 0.16759
}

Semantic roles & 50–950 ramp

primary
#4C7F12
secondary
#7238B5
accent
#36F28E
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4C7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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