#4E781F#4E781F

#4E781F is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.126 H 131.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4E781F
RGBrgb(78, 120, 31)
HSLhsl(88, 59%, 30%)
HSVhsv(88, 74%, 47%)
CMYKcmyk(35%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.84, -29.68, 41.91)
CIE-LCHlch(45.84, 51.36, 125.31°)
OKLaboklab(52.31% -0.0838 0.0944)
OKLCHoklch(52.31% 0.126 131.6)
XYZxyz(10.1056, 15.1512, 3.6881)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E781F #491F78
analogous
#78761F #4E781F #21781F
triadic
#4E781F #1F4E78 #781F4E
tetradic
#4E781F #1F7876 #491F78 #781F21
square
#4E781F #1F7876 #491F78 #781F21
split-complementary
#4E781F #1F2178 #761F78
monochromatic
#101806 #2E4712 #4E781F #6EA92C #8DCE43

Accessibility & contrast

On white

5.21
#4E781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4E781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E781F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E781F#FFFFFF#000000##FFFFFF
##4E781F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F10
Deuteranopia (green-blind)
#786B27
Tritanopia (blue-blind)
#4F7367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4e781f;
/* rgb */ color: rgb(78, 120, 31);
/* oklch */ color: oklch(52.3% 0.126 131.6);
Tailwind
colors: {
  custom: {
    50: '#839f61',
    500: '#4e781f',
    950: '#000000',
  },
}
SCSS
$custom: #4e781f;
$custom-light: #839f61;
$custom-dark: #000000;
JSON
{
  "hex": "#4e781f",
  "rgb": {
    "r": 78,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 88.315,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5231,
    "c": 0.12622,
    "h": 131.6
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#4E781F
secondary
#7747AB
accent
#46E290
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4E781F

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

Preview Lab → · Contrast checker → · Palette generator →

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