#4E7F40#4E7F40

#4E7F40 is a mid, moderate green. Relative luminance 0.172; OKLCH L 54.6% C 0.107 H 139.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#4E7F40
RGBrgb(78, 127, 64)
HSLhsl(107, 33%, 37%)
HSVhsv(107, 50%, 50%)
CMYKcmyk(38.6%, 0%, 49.6%, 50.2%)
CIE-LABlab(48.47, -29.48, 28.99)
CIE-LCHlch(48.47, 41.35, 135.47°)
OKLaboklab(54.57% -0.0807 0.0701)
OKLCHoklch(54.57% 0.107 139)
XYZxyz(11.6563, 17.1680, 7.5491)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F40 #71407F
analogous
#6D7F40 #4E7F40 #407F52
triadic
#4E7F40 #404E7F #7F404E
tetradic
#4E7F40 #406D7F #71407F #7F5240
square
#4E7F40 #406D7F #71407F #7F5240
split-complementary
#4E7F40 #52407F #7F406D
monochromatic
#1C2E17 #35562B #4E7F40 #67A855 #8BBD7C

Accessibility & contrast

On white

4.74
#4E7F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#4E7F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F40
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F40#FFFFFF#000000##FFFFFF
##4E7F401.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82763B
Deuteranopia (green-blind)
#7B7144
Tritanopia (blue-blind)
#4B7B70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4e7f40;
/* rgb */ color: rgb(78, 127, 64);
/* oklch */ color: oklch(54.6% 0.107 139.0);
Tailwind
colors: {
  custom: {
    50: '#82a476',
    500: '#4e7f40',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f40;
$custom-light: #82a476;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f40",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 106.667,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.10694,
    "h": 139
  },
  "luminance": 0.17169
}

Semantic roles & 50–950 ramp

primary
#4E7F40
secondary
#9C73A8
accent
#5FC9B1
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0B0F08
muted
#7C7F7B

Preview Lab

Preview with #4E7F40

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

Preview Lab → · Contrast checker → · Palette generator →

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