#4C7C1C#4C7C1C

#4C7C1C is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.135 H 132.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4C7C1C
RGBrgb(76, 124, 28)
HSLhsl(90, 63%, 30%)
HSVhsv(90, 77%, 49%)
CMYKcmyk(38.7%, 0%, 77.4%, 51.4%)
CIE-LABlab(47.02, -32.51, 44.19)
CIE-LCHlch(47.02, 54.86, 126.34°)
OKLaboklab(53.24% -0.0916 0.0987)
OKLCHoklch(53.24% 0.135 132.9)
XYZxyz(10.3976, 16.0352, 3.6456)
Luminance0.1604 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C1C #4C1C7C
analogous
#7C7C1C #4C7C1C #1C7C1C
triadic
#4C7C1C #1C4C7C #7C1C4C
tetradic
#4C7C1C #1C7C7C #4C1C7C #7C1C1C
square
#4C7C1C #1C7C7C #4C1C7C #7C1C1C
split-complementary
#4C7C1C #1C1C7C #7C1C7C
monochromatic
#0F1906 #2D4A11 #4C7C1C #6BAE27 #89D43F

Accessibility & contrast

On white

4.99
#4C7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#4C7C1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C1C
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C1C#FFFFFF#000000##FFFFFF
##4C7C1C1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817207
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#4C776A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c1c;
/* rgb */ color: rgb(76, 124, 28);
/* oklch */ color: oklch(53.2% 0.135 132.9);
Tailwind
colors: {
  custom: {
    50: '#82a260',
    500: '#4c7c1c',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c1c;
$custom-light: #82a260;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c1c",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 90,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53237,
    "c": 0.13466,
    "h": 132.9
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#4C7C1C
secondary
#7A44B0
accent
#42E694
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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