#4E7F12#4E7F12

#4E7F12 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.143 H 132.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4E7F12
RGBrgb(78, 127, 18)
HSLhsl(87, 75%, 28%)
HSVhsv(87, 86%, 50%)
CMYKcmyk(38.6%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.06, -33.64, 48.40)
CIE-LCHlch(48.06, 58.94, 124.80°)
OKLaboklab(54.1% -0.0954 0.1059)
OKLCHoklch(54.1% 0.143 132)
XYZxyz(10.8403, 16.8416, 3.2517)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F12 #43127F
analogous
#7F7912 #4E7F12 #187F12
triadic
#4E7F12 #124E7F #7F124E
tetradic
#4E7F12 #127F79 #43127F #7F1218
square
#4E7F12 #127F79 #43127F #7F1218
split-complementary
#4E7F12 #12187F #79127F
monochromatic
#101B04 #2D490A #4E7F12 #6FB51A #8FE12B

Accessibility & contrast

On white

4.81
#4E7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4E7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F12
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F12#FFFFFF#000000##FFFFFF
##4E7F121.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#4F796C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4e7f12;
/* rgb */ color: rgb(78, 127, 18);
/* oklch */ color: oklch(54.1% 0.143 132.0);
Tailwind
colors: {
  custom: {
    50: '#85a45c',
    500: '#4e7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f12;
$custom-light: #85a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f12",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 86.972,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.14256,
    "h": 132
  },
  "luminance": 0.16842
}

Semantic roles & 50–950 ramp

primary
#4E7F12
secondary
#7038B5
accent
#36F28A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4E7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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