#4E7F1F#4E7F1F

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

Color values

HEX#4E7F1F
RGBrgb(78, 127, 31)
HSLhsl(91, 61%, 31%)
HSVhsv(91, 76%, 50%)
CMYKcmyk(38.6%, 0%, 75.6%, 50.2%)
CIE-LABlab(48.13, -32.92, 44.20)
CIE-LCHlch(48.13, 55.11, 126.68°)
OKLaboklab(54.18% -0.0926 0.0992)
OKLCHoklch(54.18% 0.136 133)
XYZxyz(10.9784, 16.8969, 3.9790)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F1F #501F7F
analogous
#7E7F1F #4E7F1F #1F7F20
triadic
#4E7F1F #1F4E7F #7F1F4E
tetradic
#4E7F1F #1F7E7F #501F7F #7F201F
square
#4E7F1F #1F7E7F #501F7F #7F201F
split-complementary
#4E7F1F #201F7F #7F1F7E
monochromatic
#121D07 #304E13 #4E7F1F #6CB02B #8BD246

Accessibility & contrast

On white

4.80
#4E7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#4E7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F1F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F1F#FFFFFF#000000##FFFFFF
##4E7F1F1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e7f1f;
/* rgb */ color: rgb(78, 127, 31);
/* oklch */ color: oklch(54.2% 0.136 133.0);
Tailwind
colors: {
  custom: {
    50: '#84a462',
    500: '#4e7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f1f;
$custom-light: #84a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f1f",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 90.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54178,
    "c": 0.13567,
    "h": 133
  },
  "luminance": 0.16897
}

Semantic roles & 50–950 ramp

primary
#4E7F1F
secondary
#7E48B2
accent
#44E496
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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