#4E7F18#4E7F18

#4E7F18 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.1% C 0.140 H 132.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4E7F18
RGBrgb(78, 127, 24)
HSLhsl(89, 68%, 30%)
HSVhsv(89, 81%, 50%)
CMYKcmyk(38.6%, 0%, 81.1%, 50.2%)
CIE-LABlab(48.09, -33.35, 46.63)
CIE-LCHlch(48.09, 57.33, 125.57°)
OKLaboklab(54.13% -0.0943 0.1031)
OKLCHoklch(54.13% 0.14 132.4)
XYZxyz(10.8960, 16.8639, 3.5449)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F18 #49187F
analogous
#7F7D18 #4E7F18 #1A7F18
triadic
#4E7F18 #184E7F #7F184E
tetradic
#4E7F18 #187F7D #49187F #7F181A
square
#4E7F18 #187F7D #49187F #7F181A
split-complementary
#4E7F18 #181A7F #7D187F
monochromatic
#101A05 #2E4C0E #4E7F18 #6EB222 #8DD938

Accessibility & contrast

On white

4.80
#4E7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4E7F18
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F18#FFFFFF#000000##FFFFFF
##4E7F181.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#4F7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4e7f18;
/* rgb */ color: rgb(78, 127, 24);
/* oklch */ color: oklch(54.1% 0.140 132.4);
Tailwind
colors: {
  custom: {
    50: '#84a45e',
    500: '#4e7f18',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f18;
$custom-light: #84a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f18",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 88.544,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54131,
    "c": 0.13974,
    "h": 132.4
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

primary
#4E7F18
secondary
#773FB3
accent
#3DEB90
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4E7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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