#4E8C12#4E8C12

#4E8C12 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.159 H 134.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4E8C12
RGBrgb(78, 140, 18)
HSLhsl(90, 77%, 31%)
HSVhsv(90, 87%, 55%)
CMYKcmyk(44.3%, 0%, 87.1%, 45.1%)
CIE-LABlab(52.31, -39.29, 52.14)
CIE-LCHlch(52.31, 65.28, 127.00°)
OKLaboklab(57.58% -0.1106 0.1138)
OKLCHoklch(57.58% 0.159 134.2)
XYZxyz(12.6289, 20.4188, 3.8479)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8C12 #50128C
analogous
#8B8C12 #4E8C12 #128C13
triadic
#4E8C12 #124E8C #8C124E
tetradic
#4E8C12 #128B8C #50128C #8C1312
square
#4E8C12 #128B8C #50128C #8C1312
split-complementary
#4E8C12 #13128C #8C128B
monochromatic
#122004 #30560B #4E8C12 #6CC219 #8BE534

Accessibility & contrast

On white

4.13
#4E8C12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#4E8C12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8C12
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8C12#FFFFFF#000000##000000
##4E8C121.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#4D8677
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4e8c12;
/* rgb */ color: rgb(78, 140, 18);
/* oklch */ color: oklch(57.6% 0.159 134.2);
Tailwind
colors: {
  custom: {
    50: '#86ae5e',
    500: '#4e8c12',
    950: '#000000',
  },
}
SCSS
$custom: #4e8c12;
$custom-light: #86ae5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8c12",
  "rgb": {
    "r": 78,
    "g": 140,
    "b": 18
  },
  "hsl": {
    "h": 90.492,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57579,
    "c": 0.1587,
    "h": 134.2
  },
  "luminance": 0.2042
}

Semantic roles & 50–950 ramp

primary
#4E8C12
secondary
#7E39C0
accent
#34F495
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4E8C12

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

Preview Lab → · Contrast checker → · Palette generator →

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