#4E7C21#4E7C21

#4E7C21 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.4% C 0.130 H 132.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#4E7C21
RGBrgb(78, 124, 33)
HSLhsl(90, 58%, 31%)
HSVhsv(90, 73%, 49%)
CMYKcmyk(37.1%, 0%, 73.4%, 51.4%)
CIE-LABlab(47.16, -31.40, 42.44)
CIE-LCHlch(47.16, 52.80, 126.50°)
OKLaboklab(53.39% -0.0883 0.0958)
OKLCHoklch(53.39% 0.13 132.7)
XYZxyz(10.6239, 16.1444, 3.9950)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7C21 #4F217C
analogous
#7B7C21 #4E7C21 #217C21
triadic
#4E7C21 #214E7C #7C214E
tetradic
#4E7C21 #217B7C #4F217C #7C2121
square
#4E7C21 #217B7C #4F217C #7C2121
split-complementary
#4E7C21 #21217C #7C217B
monochromatic
#111B07 #304C14 #4E7C21 #6CAC2E #8BCF49

Accessibility & contrast

On white

4.97
#4E7C21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#4E7C21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7C21
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7C21#FFFFFF#000000##FFFFFF
##4E7C211.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#4F776A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4e7c21;
/* rgb */ color: rgb(78, 124, 33);
/* oklch */ color: oklch(53.4% 0.130 132.7);
Tailwind
colors: {
  custom: {
    50: '#84a262',
    500: '#4e7c21',
    950: '#000000',
  },
}
SCSS
$custom: #4e7c21;
$custom-light: #84a262;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7c21",
  "rgb": {
    "r": 78,
    "g": 124,
    "b": 33
  },
  "hsl": {
    "h": 90.33,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53394,
    "c": 0.13031,
    "h": 132.7
  },
  "luminance": 0.16145
}

Semantic roles & 50–950 ramp

primary
#4E7C21
secondary
#7D4AAF
accent
#47E195
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7C21

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

Preview Lab → · Contrast checker → · Palette generator →

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