#4E8A21#4E8A21

#4E8A21 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.1% C 0.149 H 135.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#4E8A21
RGBrgb(78, 138, 33)
HSLhsl(94, 61%, 34%)
HSVhsv(94, 76%, 54%)
CMYKcmyk(43.5%, 0%, 76.1%, 45.9%)
CIE-LABlab(51.73, -37.64, 47.01)
CIE-LCHlch(51.73, 60.22, 128.68°)
OKLaboklab(57.13% -0.1052 0.1054)
OKLCHoklch(57.13% 0.149 135)
XYZxyz(12.5046, 19.9058, 4.6219)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8A21 #5D218A
analogous
#828A21 #4E8A21 #218A28
triadic
#4E8A21 #214E8A #8A214E
tetradic
#4E8A21 #21828A #5D218A #8A2821
square
#4E8A21 #21828A #5D218A #8A2821
split-complementary
#4E8A21 #28218A #8A2182
monochromatic
#162709 #325915 #4E8A21 #6ABB2D #89D550

Accessibility & contrast

On white

4.22
#4E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#4E8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8A21
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8A21#FFFFFF#000000##000000
##4E8A211.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#877A2C
Tritanopia (blue-blind)
#4D8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4e8a21;
/* rgb */ color: rgb(78, 138, 33);
/* oklch */ color: oklch(57.1% 0.149 135.0);
Tailwind
colors: {
  custom: {
    50: '#85ac64',
    500: '#4e8a21',
    950: '#000000',
  },
}
SCSS
$custom: #4e8a21;
$custom-light: #85ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8a21",
  "rgb": {
    "r": 78,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 94.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57129,
    "c": 0.1489,
    "h": 135
  },
  "luminance": 0.19906
}

Semantic roles & 50–950 ramp

primary
#4E8A21
secondary
#8B4EB9
accent
#43E59F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4E8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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