#4E7818#4E7818

#4E7818 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.3% C 0.131 H 131.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4E7818
RGBrgb(78, 120, 24)
HSLhsl(86, 67%, 28%)
HSVhsv(86, 80%, 47%)
CMYKcmyk(35%, 0%, 80%, 52.9%)
CIE-LABlab(45.80, -30.14, 44.48)
CIE-LCHlch(45.80, 53.73, 124.12°)
OKLaboklab(52.26% -0.0856 0.0986)
OKLCHoklch(52.26% 0.131 131)
XYZxyz(10.0231, 15.1182, 3.2540)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7818 #421878
analogous
#787218 #4E7818 #1E7818
triadic
#4E7818 #184E78 #78184E
tetradic
#4E7818 #187872 #421878 #78181E
square
#4E7818 #187872 #421878 #78181E
split-complementary
#4E7818 #181E78 #721878
monochromatic
#111A05 #2D450E #4E7818 #6FAB22 #8FD634

Accessibility & contrast

On white

5.22
#4E7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4E7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7818
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7818#FFFFFF#000000##FFFFFF
##4E78181.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E01
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#507366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4e7818;
/* rgb */ color: rgb(78, 120, 24);
/* oklch */ color: oklch(52.3% 0.131 131.0);
Tailwind
colors: {
  custom: {
    50: '#849f5d',
    500: '#4e7818',
    950: '#000000',
  },
}
SCSS
$custom: #4e7818;
$custom-light: #849f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7818",
  "rgb": {
    "r": 78,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 86.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52259,
    "c": 0.13059,
    "h": 131
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#4E7818
secondary
#6F3FAD
accent
#3EEA89
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4E7818

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

Preview Lab → · Contrast checker → · Palette generator →

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