#4E7E12#4E7E12

#4E7E12 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.8% C 0.141 H 131.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4E7E12
RGBrgb(78, 126, 18)
HSLhsl(87, 75%, 28%)
HSVhsv(87, 86%, 49%)
CMYKcmyk(38.1%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.73, -33.19, 48.11)
CIE-LCHlch(47.73, 58.45, 124.61°)
OKLaboklab(53.83% -0.0942 0.1053)
OKLCHoklch(53.83% 0.141 131.8)
XYZxyz(10.7118, 16.5846, 3.2089)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7E12 #42127E
analogous
#7E7812 #4E7E12 #187E12
triadic
#4E7E12 #124E7E #7E124E
tetradic
#4E7E12 #127E78 #42127E #7E1218
square
#4E7E12 #127E78 #42127E #7E1218
split-complementary
#4E7E12 #12187E #78127E
monochromatic
#111B04 #2D480A #4E7E12 #6FB41A #8FE12A

Accessibility & contrast

On white

4.86
#4E7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4E7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7E12
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7E12#FFFFFF#000000##FFFFFF
##4E7E121.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D701F
Tritanopia (blue-blind)
#4F786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4e7e12;
/* rgb */ color: rgb(78, 126, 18);
/* oklch */ color: oklch(53.8% 0.141 131.8);
Tailwind
colors: {
  custom: {
    50: '#84a45c',
    500: '#4e7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4e7e12;
$custom-light: #84a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7e12",
  "rgb": {
    "r": 78,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 86.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53831,
    "c": 0.1413,
    "h": 131.8
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

primary
#4E7E12
secondary
#6F38B4
accent
#36F289
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4E7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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