#4E7312#4E7312

#4E7312 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.9% C 0.127 H 129.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#4E7312
RGBrgb(78, 115, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 84%, 45%)
CMYKcmyk(32.2%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.12, -28.08, 44.87)
CIE-LCHlch(44.12, 52.94, 122.04°)
OKLaboklab(50.89% -0.0805 0.0984)
OKLCHoklch(50.89% 0.127 129.3)
XYZxyz(9.3818, 13.9246, 2.7656)
Luminance0.1393 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7312 #371273
analogous
#736712 #4E7312 #1D7312
triadic
#4E7312 #124E73 #73124E
tetradic
#4E7312 #127367 #371273 #73121D
square
#4E7312 #127367 #371273 #73121D
split-complementary
#4E7312 #121D73 #671273
monochromatic
#121A04 #2A3E0A #4E7312 #72A81A #96DD23

Accessibility & contrast

On white

5.55
#4E7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#4E7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7312
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7312#FFFFFF#000000##FFFFFF
##4E73121.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#74671D
Tritanopia (blue-blind)
#516E61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4e7312;
/* rgb */ color: rgb(78, 115, 18);
/* oklch */ color: oklch(50.9% 0.127 129.3);
Tailwind
colors: {
  custom: {
    50: '#839b5a',
    500: '#4e7312',
    950: '#000000',
  },
}
SCSS
$custom: #4e7312;
$custom-light: #839b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7312",
  "rgb": {
    "r": 78,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 82.887,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50887,
    "c": 0.12715,
    "h": 129.3
  },
  "luminance": 0.13925
}

Semantic roles & 50–950 ramp

primary
#4E7312
secondary
#6337AA
accent
#38F07E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4E7312

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

Preview Lab → · Contrast checker → · Palette generator →

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