#4E8C21#4E8C21

#4E8C21 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.7% C 0.151 H 135.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4E8C21
RGBrgb(78, 140, 33)
HSLhsl(95, 62%, 34%)
HSVhsv(95, 76%, 55%)
CMYKcmyk(44.3%, 0%, 76.4%, 45.1%)
CIE-LABlab(52.38, -38.50, 47.65)
CIE-LCHlch(52.38, 61.26, 128.94°)
OKLaboklab(57.66% -0.1075 0.1067)
OKLCHoklch(57.66% 0.151 135.2)
XYZxyz(12.7942, 20.4849, 4.7184)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E8C21 #5F218C
analogous
#848C21 #4E8C21 #218C29
triadic
#4E8C21 #214E8C #8C214E
tetradic
#4E8C21 #21848C #5F218C #8C2921
square
#4E8C21 #21848C #5F218C #8C2921
split-complementary
#4E8C21 #29218C #8C2184
monochromatic
#17290A #325A15 #4E8C21 #6ABE2D #89D651

Accessibility & contrast

On white

4.12
#4E8C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#4E8C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E8C21
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E8C21#FFFFFF#000000##000000
##4E8C211.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#4C8778
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4e8c21;
/* rgb */ color: rgb(78, 140, 33);
/* oklch */ color: oklch(57.7% 0.151 135.2);
Tailwind
colors: {
  custom: {
    50: '#85ae64',
    500: '#4e8c21',
    950: '#000000',
  },
}
SCSS
$custom: #4e8c21;
$custom-light: #85ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#4e8c21",
  "rgb": {
    "r": 78,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 94.766,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57663,
    "c": 0.15148,
    "h": 135.2
  },
  "luminance": 0.20486
}

Semantic roles & 50–950 ramp

primary
#4E8C21
secondary
#8D4FB9
accent
#43E5A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4E8C21

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

Preview Lab → · Contrast checker → · Palette generator →

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