#4E7C1F#4E7C1F

#4E7C1F is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.4% C 0.132 H 132.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4E7C1F
RGBrgb(78, 124, 31)
HSLhsl(90, 60%, 30%)
HSVhsv(90, 75%, 49%)
CMYKcmyk(37.1%, 0%, 75%, 51.4%)
CIE-LABlab(47.15, -31.55, 43.22)
CIE-LCHlch(47.15, 53.51, 126.12°)
OKLaboklab(53.38% -0.0889 0.0971)
OKLCHoklch(53.38% 0.132 132.5)
XYZxyz(10.5967, 16.1335, 3.8518)
Luminance0.1613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7C1F #4D1F7C
analogous
#7C7B1F #4E7C1F #207C1F
triadic
#4E7C1F #1F4E7C #7C1F4E
tetradic
#4E7C1F #1F7C7B #4D1F7C #7C1F20
square
#4E7C1F #1F7C7B #4D1F7C #7C1F20
split-complementary
#4E7C1F #1F207C #7B1F7C
monochromatic
#101A07 #2F4B13 #4E7C1F #6DAD2B #8BD045

Accessibility & contrast

On white

4.97
#4E7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#4E7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7C1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7C1F#FFFFFF#000000##FFFFFF
##4E7C1F1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#4F776A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4e7c1f;
/* rgb */ color: rgb(78, 124, 31);
/* oklch */ color: oklch(53.4% 0.132 132.5);
Tailwind
colors: {
  custom: {
    50: '#84a261',
    500: '#4e7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e7c1f;
$custom-light: #84a261;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7c1f",
  "rgb": {
    "r": 78,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 89.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.13165,
    "h": 132.5
  },
  "luminance": 0.16134
}

Semantic roles & 50–950 ramp

primary
#4E7C1F
secondary
#7B48AF
accent
#45E393
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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