#4C7D1C#4C7D1C

#4C7D1C is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.136 H 133.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4C7D1C
RGBrgb(76, 125, 28)
HSLhsl(90, 63%, 30%)
HSVhsv(90, 78%, 49%)
CMYKcmyk(39.2%, 0%, 77.6%, 51%)
CIE-LABlab(47.35, -32.96, 44.51)
CIE-LCHlch(47.35, 55.39, 126.52°)
OKLaboklab(53.51% -0.0928 0.0994)
OKLCHoklch(53.51% 0.136 133)
XYZxyz(10.5236, 16.2871, 3.6876)
Luminance0.1629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D1C #4D1C7D
analogous
#7D7D1C #4C7D1C #1C7D1C
triadic
#4C7D1C #1C4C7D #7D1C4C
tetradic
#4C7D1C #1C7D7D #4D1C7D #7D1C1C
square
#4C7D1C #1C7D7D #4D1C7D #7D1C1C
split-complementary
#4C7D1C #1C1C7D #7D1C7D
monochromatic
#0F1906 #2E4B11 #4C7D1C #6AAF27 #89D43F

Accessibility & contrast

On white

4.93
#4C7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4C7D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D1C
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D1C#FFFFFF#000000##FFFFFF
##4C7D1C1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827307
Deuteranopia (green-blind)
#7C6F26
Tritanopia (blue-blind)
#4C786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d1c;
/* rgb */ color: rgb(76, 125, 28);
/* oklch */ color: oklch(53.5% 0.136 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a360',
    500: '#4c7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d1c;
$custom-light: #83a360;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d1c",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 90.309,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.53505,
    "c": 0.13599,
    "h": 133
  },
  "luminance": 0.16288
}

Semantic roles & 50–950 ramp

primary
#4C7D1C
secondary
#7B44B1
accent
#41E695
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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