#4E7828#4E7828

#4E7828 is a mid, moderate yellow-green. Relative luminance 0.152; OKLCH L 52.4% C 0.119 H 132.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4E7828
RGBrgb(78, 120, 40)
HSLhsl(92, 50%, 31%)
HSVhsv(92, 67%, 47%)
CMYKcmyk(35%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.91, -28.95, 38.10)
CIE-LCHlch(45.91, 47.85, 127.22°)
OKLaboklab(52.39% -0.081 0.0877)
OKLCHoklch(52.39% 0.119 132.7)
XYZxyz(10.2412, 15.2054, 4.4024)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7828 #522878
analogous
#767828 #4E7828 #28782A
triadic
#4E7828 #284E78 #78284E
tetradic
#4E7828 #287678 #522878 #782A28
square
#4E7828 #287678 #522878 #782A28
split-complementary
#4E7828 #2A2878 #782876
monochromatic
#121C09 #304A19 #4E7828 #6CA637 #8AC654

Accessibility & contrast

On white

5.20
#4E7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#4E7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7828
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7828#FFFFFF#000000##FFFFFF
##4E78281.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#776C2E
Tritanopia (blue-blind)
#4F7367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4e7828;
/* rgb */ color: rgb(78, 120, 40);
/* oklch */ color: oklch(52.4% 0.119 132.7);
Tailwind
colors: {
  custom: {
    50: '#839f66',
    500: '#4e7828',
    950: '#000000',
  },
}
SCSS
$custom: #4e7828;
$custom-light: #839f66;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7828",
  "rgb": {
    "r": 78,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 91.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52394,
    "c": 0.11939,
    "h": 132.7
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#4E7828
secondary
#8052AA
accent
#4EDA97
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4E7828

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

Preview Lab → · Contrast checker → · Palette generator →

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