#4E7822#4E7822

#4E7822 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.124 H 131.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4E7822
RGBrgb(78, 120, 34)
HSLhsl(89, 56%, 30%)
HSVhsv(89, 72%, 47%)
CMYKcmyk(35%, 0%, 71.7%, 52.9%)
CIE-LABlab(45.86, -29.46, 40.70)
CIE-LCHlch(45.86, 50.24, 125.90°)
OKLaboklab(52.34% -0.0829 0.0923)
OKLCHoklch(52.34% 0.124 131.9)
XYZxyz(10.1470, 15.1678, 3.9061)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7822 #4C2278
analogous
#787722 #4E7822 #237822
triadic
#4E7822 #224E78 #78224E
tetradic
#4E7822 #227877 #4C2278 #782223
square
#4E7822 #227877 #4C2278 #782223
split-complementary
#4E7822 #222378 #772278
monochromatic
#101907 #2F4814 #4E7822 #6DA830 #8CCB49

Accessibility & contrast

On white

5.21
#4E7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#4E7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7822
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7822#FFFFFF#000000##FFFFFF
##4E78221.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e7822;
/* rgb */ color: rgb(78, 120, 34);
/* oklch */ color: oklch(52.3% 0.124 131.9);
Tailwind
colors: {
  custom: {
    50: '#839f62',
    500: '#4e7822',
    950: '#000000',
  },
}
SCSS
$custom: #4e7822;
$custom-light: #839f62;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7822",
  "rgb": {
    "r": 78,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 89.302,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.12409,
    "h": 131.9
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#4E7822
secondary
#7A4BAB
accent
#49DF92
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E05
muted
#7C7E7A

Preview Lab

Preview with #4E7822

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

Preview Lab → · Contrast checker → · Palette generator →

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