#4C7F1F#4C7F1F

#4C7F1F is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.137 H 133.7°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4C7F1F
RGBrgb(76, 127, 31)
HSLhsl(92, 61%, 31%)
HSVhsv(92, 76%, 50%)
CMYKcmyk(40.2%, 0%, 75.6%, 50.2%)
CIE-LABlab(48.02, -33.66, 44.06)
CIE-LCHlch(48.02, 55.45, 127.38°)
OKLaboklab(54.06% -0.0945 0.0989)
OKLCHoklch(54.06% 0.137 133.7)
XYZxyz(10.8170, 16.8137, 3.9715)
Luminance0.1681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7F1F #521F7F
analogous
#7C7F1F #4C7F1F #1F7F22
triadic
#4C7F1F #1F4C7F #7F1F4C
tetradic
#4C7F1F #1F7C7F #521F7F #7F221F
square
#4C7F1F #1F7C7F #521F7F #7F221F
split-complementary
#4C7F1F #221F7F #7F1F7C
monochromatic
#111D07 #2F4E13 #4C7F1F #69B02B #88D246

Accessibility & contrast

On white

4.81
#4C7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4C7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7F1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7F1F#FFFFFF#000000##FFFFFF
##4C7F1F1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750D
Deuteranopia (green-blind)
#7D7128
Tritanopia (blue-blind)
#4C7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4c7f1f;
/* rgb */ color: rgb(76, 127, 31);
/* oklch */ color: oklch(54.1% 0.137 133.7);
Tailwind
colors: {
  custom: {
    50: '#83a462',
    500: '#4c7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c7f1f;
$custom-light: #83a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7f1f",
  "rgb": {
    "r": 76,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 91.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.13678,
    "h": 133.7
  },
  "luminance": 0.16814
}

Semantic roles & 50–950 ramp

primary
#4C7F1F
secondary
#8048B2
accent
#44E499
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4C7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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