#4E7018#4E7018

#4E7018 is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.1% C 0.120 H 128.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#4E7018
RGBrgb(78, 112, 24)
HSLhsl(83, 65%, 27%)
HSVhsv(83, 79%, 44%)
CMYKcmyk(30.4%, 0%, 78.6%, 56.1%)
CIE-LABlab(43.17, -26.31, 41.98)
CIE-LCHlch(43.17, 49.54, 122.08°)
OKLaboklab(50.12% -0.0752 0.0934)
OKLCHoklch(50.12% 0.12 128.9)
XYZxyz(9.1009, 13.2737, 2.9466)
Luminance0.1327 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7018 #3A1870
analogous
#706618 #4E7018 #227018
triadic
#4E7018 #184E70 #70184E
tetradic
#4E7018 #187066 #3A1870 #701822
square
#4E7018 #187066 #3A1870 #701822
split-complementary
#4E7018 #182270 #661870
monochromatic
#121905 #2B3E0D #4E7018 #71A223 #94D330

Accessibility & contrast

On white

5.75
#4E7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4E7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7018
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7018#FFFFFF#000000##FFFFFF
##4E70181.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766805
Deuteranopia (green-blind)
#716521
Tritanopia (blue-blind)
#516B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4e7018;
/* rgb */ color: rgb(78, 112, 24);
/* oklch */ color: oklch(50.1% 0.120 128.9);
Tailwind
colors: {
  custom: {
    50: '#83995c',
    500: '#4e7018',
    950: '#000000',
  },
}
SCSS
$custom: #4e7018;
$custom-light: #83995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7018",
  "rgb": {
    "r": 78,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 83.182,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50123,
    "c": 0.1199,
    "h": 128.9
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#4E7018
secondary
#663EA5
accent
#40E881
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4E7018

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

Preview Lab → · Contrast checker → · Palette generator →

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