#4E7212#4E7212

#4E7212 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.6% C 0.126 H 129.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#4E7212
RGBrgb(78, 114, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 84%, 45%)
CMYKcmyk(31.6%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.80, -27.60, 44.58)
CIE-LCHlch(43.80, 52.43, 121.77°)
OKLaboklab(50.62% -0.0792 0.0978)
OKLCHoklch(50.62% 0.126 129)
XYZxyz(9.2684, 13.6977, 2.7278)
Luminance0.1370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7212 #361272
analogous
#726612 #4E7212 #1E7212
triadic
#4E7212 #124E72 #72124E
tetradic
#4E7212 #127266 #361272 #72121E
square
#4E7212 #127266 #361272 #72121E
split-complementary
#4E7212 #121E72 #661272
monochromatic
#121A04 #2A3D0A #4E7212 #72A71A #96DC23

Accessibility & contrast

On white

5.62
#4E7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#4E7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7212
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7212#FFFFFF#000000##FFFFFF
##4E72121.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#516D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4e7212;
/* rgb */ color: rgb(78, 114, 18);
/* oklch */ color: oklch(50.6% 0.126 129.0);
Tailwind
colors: {
  custom: {
    50: '#839a5a',
    500: '#4e7212',
    950: '#000000',
  },
}
SCSS
$custom: #4e7212;
$custom-light: #839a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7212",
  "rgb": {
    "r": 78,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 82.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50619,
    "c": 0.12584,
    "h": 129
  },
  "luminance": 0.13698
}

Semantic roles & 50–950 ramp

primary
#4E7212
secondary
#6237A9
accent
#38EF7D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4E7212

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

Preview Lab → · Contrast checker → · Palette generator →

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