#4E7D1F#4E7D1F

#4E7D1F is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.6% C 0.133 H 132.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4E7D1F
RGBrgb(78, 125, 31)
HSLhsl(90, 60%, 31%)
HSVhsv(90, 75%, 49%)
CMYKcmyk(37.6%, 0%, 75.2%, 51%)
CIE-LABlab(47.48, -32.01, 43.55)
CIE-LCHlch(47.48, 54.05, 126.31°)
OKLaboklab(53.64% -0.0901 0.0978)
OKLCHoklch(53.64% 0.133 132.7)
XYZxyz(10.7227, 16.3854, 3.8938)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7D1F #4E1F7D
analogous
#7D7D1F #4E7D1F #1F7D1F
triadic
#4E7D1F #1F4E7D #7D1F4E
tetradic
#4E7D1F #1F7D7D #4E1F7D #7D1F1F
square
#4E7D1F #1F7D7D #4E1F7D #7D1F1F
split-complementary
#4E7D1F #1F1F7D #7D1F7D
monochromatic
#111B07 #2F4C13 #4E7D1F #6DAE2B #8BD145

Accessibility & contrast

On white

4.91
#4E7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4E7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7D1F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7D1F#FFFFFF#000000##FFFFFF
##4E7D1F1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730E
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#4F786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4e7d1f;
/* rgb */ color: rgb(78, 125, 31);
/* oklch */ color: oklch(53.6% 0.133 132.7);
Tailwind
colors: {
  custom: {
    50: '#84a361',
    500: '#4e7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e7d1f;
$custom-light: #84a361;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7d1f",
  "rgb": {
    "r": 78,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53644,
    "c": 0.133,
    "h": 132.7
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#4E7D1F
secondary
#7C48B0
accent
#44E394
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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