#4E7228#4E7228

#4E7228 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.111 H 131.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4E7228
RGBrgb(78, 114, 40)
HSLhsl(89, 48%, 30%)
HSVhsv(89, 65%, 45%)
CMYKcmyk(31.6%, 0%, 64.9%, 55.3%)
CIE-LABlab(43.96, -26.04, 35.96)
CIE-LCHlch(43.96, 44.40, 125.91°)
OKLaboklab(50.8% -0.0731 0.0831)
OKLCHoklch(50.8% 0.111 131.3)
XYZxyz(9.5421, 13.8072, 4.1694)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7228 #4C2872
analogous
#727128 #4E7228 #297228
triadic
#4E7228 #284E72 #72284E
tetradic
#4E7228 #287271 #4C2872 #722829
square
#4E7228 #287271 #4C2872 #722829
split-complementary
#4E7228 #282972 #712872
monochromatic
#101708 #2F4518 #4E7228 #6D9F38 #8CC252

Accessibility & contrast

On white

5.58
#4E7228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4E7228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7228
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7228#FFFFFF#000000##FFFFFF
##4E72281.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A1F
Deuteranopia (green-blind)
#72672E
Tritanopia (blue-blind)
#4F6D62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4e7228;
/* rgb */ color: rgb(78, 114, 40);
/* oklch */ color: oklch(50.8% 0.111 131.3);
Tailwind
colors: {
  custom: {
    50: '#829a65',
    500: '#4e7228',
    950: '#000000',
  },
}
SCSS
$custom: #4e7228;
$custom-light: #829a65;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7228",
  "rgb": {
    "r": 78,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 89.189,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.508,
    "c": 0.11069,
    "h": 131.3
  },
  "luminance": 0.13808
}

Semantic roles & 50–950 ramp

primary
#4E7228
secondary
#7A52A4
accent
#50D892
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4E7228

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

Preview Lab → · Contrast checker → · Palette generator →

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