#4C7D1F#4C7D1F

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

Color values

HEX#4C7D1F
RGBrgb(76, 125, 31)
HSLhsl(91, 60%, 31%)
HSVhsv(91, 75%, 49%)
CMYKcmyk(39.2%, 0%, 75.2%, 51%)
CIE-LABlab(47.37, -32.76, 43.41)
CIE-LCHlch(47.37, 54.38, 127.04°)
OKLaboklab(53.53% -0.092 0.0976)
OKLCHoklch(53.53% 0.134 133.3)
XYZxyz(10.5613, 16.3022, 3.8862)
Luminance0.1630 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D1F #501F7D
analogous
#7B7D1F #4C7D1F #1F7D21
triadic
#4C7D1F #1F4C7D #7D1F4C
tetradic
#4C7D1F #1F7B7D #501F7D #7D211F
square
#4C7D1F #1F7B7D #501F7D #7D211F
split-complementary
#4C7D1F #211F7D #7D1F7B
monochromatic
#101B07 #2E4C13 #4C7D1F #6AAE2B #88D145

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C7D1F#FFFFFF#000000##FFFFFF
##4C7D1F1.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)
#82730E
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#4C786B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d1f;
/* rgb */ color: rgb(76, 125, 31);
/* oklch */ color: oklch(53.5% 0.134 133.3);
Tailwind
colors: {
  custom: {
    50: '#82a361',
    500: '#4c7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d1f;
$custom-light: #82a361;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d1f",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 91.277,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53528,
    "c": 0.13411,
    "h": 133.3
  },
  "luminance": 0.16303
}

Semantic roles & 50–950 ramp

primary
#4C7D1F
secondary
#7E48B0
accent
#44E397
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4C7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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