#4E7B1F#4E7B1F

#4E7B1F is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.130 H 132.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4E7B1F
RGBrgb(78, 123, 31)
HSLhsl(89, 60%, 30%)
HSVhsv(89, 75%, 48%)
CMYKcmyk(36.6%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.82, -31.09, 42.90)
CIE-LCHlch(46.82, 52.98, 125.93°)
OKLaboklab(53.11% -0.0876 0.0964)
OKLCHoklch(53.11% 0.13 132.3)
XYZxyz(10.4720, 15.8841, 3.8102)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7B1F #4C1F7B
analogous
#7B7A1F #4E7B1F #207B1F
triadic
#4E7B1F #1F4E7B #7B1F4E
tetradic
#4E7B1F #1F7B7A #4C1F7B #7B1F20
square
#4E7B1F #1F7B7A #4C1F7B #7B1F20
split-complementary
#4E7B1F #1F207B #7A1F7B
monochromatic
#101906 #2F4A13 #4E7B1F #6DAC2B #8CD044

Accessibility & contrast

On white

5.03
#4E7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4E7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7B1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7B1F#FFFFFF#000000##FFFFFF
##4E7B1F1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710F
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#4F7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4e7b1f;
/* rgb */ color: rgb(78, 123, 31);
/* oklch */ color: oklch(53.1% 0.130 132.3);
Tailwind
colors: {
  custom: {
    50: '#84a161',
    500: '#4e7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #4e7b1f;
$custom-light: #84a161;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7b1f",
  "rgb": {
    "r": 78,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 89.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53111,
    "c": 0.1303,
    "h": 132.3
  },
  "luminance": 0.15885
}

Semantic roles & 50–950 ramp

primary
#4E7B1F
secondary
#7A48AE
accent
#45E392
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4E7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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