#4E7218#4E7218

#4E7218 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.7% C 0.123 H 129.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#4E7218
RGBrgb(78, 114, 24)
HSLhsl(84, 65%, 27%)
HSVhsv(84, 79%, 45%)
CMYKcmyk(31.6%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.83, -27.28, 42.61)
CIE-LCHlch(43.83, 50.59, 122.63°)
OKLaboklab(50.66% -0.0779 0.0947)
OKLCHoklch(50.66% 0.123 129.4)
XYZxyz(9.3240, 13.7200, 3.0209)
Luminance0.1372 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7218 #3C1872
analogous
#726918 #4E7218 #217218
triadic
#4E7218 #184E72 #72184E
tetradic
#4E7218 #187269 #3C1872 #721821
square
#4E7218 #187269 #3C1872 #721821
split-complementary
#4E7218 #182172 #691872
monochromatic
#111905 #2B3F0D #4E7218 #71A523 #92D431

Accessibility & contrast

On white

5.61
#4E7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4E7218
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7218#FFFFFF#000000##FFFFFF
##4E72181.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#506D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4e7218;
/* rgb */ color: rgb(78, 114, 24);
/* oklch */ color: oklch(50.7% 0.123 129.4);
Tailwind
colors: {
  custom: {
    50: '#839a5d',
    500: '#4e7218',
    950: '#000000',
  },
}
SCSS
$custom: #4e7218;
$custom-light: #839a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7218",
  "rgb": {
    "r": 78,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 84,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50656,
    "c": 0.12259,
    "h": 129.4
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#4E7218
secondary
#683EA7
accent
#40E883
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4E7218

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

Preview Lab → · Contrast checker → · Palette generator →

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