#4E7227#4E7227

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

Color values

HEX#4E7227
RGBrgb(78, 114, 39)
HSLhsl(89, 49%, 30%)
HSVhsv(89, 66%, 45%)
CMYKcmyk(31.6%, 0%, 65.8%, 55.3%)
CIE-LABlab(43.95, -26.14, 36.42)
CIE-LCHlch(43.95, 44.83, 125.67°)
OKLaboklab(50.79% -0.0734 0.084)
OKLCHoklch(50.79% 0.112 131.2)
XYZxyz(9.5253, 13.8005, 4.0810)
Luminance0.1380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7227 #4B2772
analogous
#727127 #4E7227 #287227
triadic
#4E7227 #274E72 #72274E
tetradic
#4E7227 #277271 #4B2772 #722728
square
#4E7227 #277271 #4B2772 #722728
split-complementary
#4E7227 #272872 #712772
monochromatic
#101708 #2F4417 #4E7227 #6DA037 #8CC350

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E7227#FFFFFF#000000##FFFFFF
##4E72271.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)
#776A1E
Deuteranopia (green-blind)
#72672D
Tritanopia (blue-blind)
#4F6D62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4e7227;
/* rgb */ color: rgb(78, 114, 39);
/* oklch */ color: oklch(50.8% 0.112 131.2);
Tailwind
colors: {
  custom: {
    50: '#829a65',
    500: '#4e7227',
    950: '#000000',
  },
}
SCSS
$custom: #4e7227;
$custom-light: #829a65;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7227",
  "rgb": {
    "r": 78,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 88.8,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.50789,
    "c": 0.11156,
    "h": 131.2
  },
  "luminance": 0.13801
}

Semantic roles & 50–950 ramp

primary
#4E7227
secondary
#7950A4
accent
#4FD991
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #4E7227

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

Preview Lab → · Contrast checker → · Palette generator →

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