#4E6812#4E6812

#4E6812 is a mid, moderate yellow-green. Relative luminance 0.116; OKLCH L 48.0% C 0.113 H 125.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#4E6812
RGBrgb(78, 104, 18)
HSLhsl(78, 70%, 24%)
HSVhsv(78, 83%, 41%)
CMYKcmyk(25%, 0%, 82.7%, 59.2%)
CIE-LABlab(40.51, -22.65, 41.58)
CIE-LCHlch(40.51, 47.35, 118.58°)
OKLaboklab(47.95% -0.0657 0.0915)
OKLCHoklch(47.95% 0.113 125.7)
XYZxyz(8.2014, 11.5639, 2.3721)
Luminance0.1156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E6812 #2C1268
analogous
#685712 #4E6812 #236812
triadic
#4E6812 #124E68 #68124E
tetradic
#4E6812 #126857 #2C1268 #681223
square
#4E6812 #126857 #2C1268 #681223
split-complementary
#4E6812 #122368 #571268
monochromatic
#141A05 #273409 #4E6812 #759C1B #9CD024

Accessibility & contrast

On white

6.34
#4E6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4E6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E6812
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E6812#FFFFFF#000000##FFFFFF
##4E68121.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#6B5F1B
Tritanopia (blue-blind)
#526358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e6812;
/* rgb */ color: rgb(78, 104, 18);
/* oklch */ color: oklch(48.0% 0.113 125.7);
Tailwind
colors: {
  custom: {
    50: '#839358',
    500: '#4e6812',
    950: '#000000',
  },
}
SCSS
$custom: #4e6812;
$custom-light: #839358;
$custom-dark: #000000;
JSON
{
  "hex": "#4e6812",
  "rgb": {
    "r": 78,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 78.14,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.11266,
    "h": 125.7
  },
  "luminance": 0.11564
}

Semantic roles & 50–950 ramp

primary
#4E6812
secondary
#5636A0
accent
#3BED71
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4E6812

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

Preview Lab → · Contrast checker → · Palette generator →

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