#4E7A21#4E7A21

#4E7A21 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.9% C 0.128 H 132.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4E7A21
RGBrgb(78, 122, 33)
HSLhsl(90, 57%, 30%)
HSVhsv(90, 73%, 48%)
CMYKcmyk(36.1%, 0%, 73%, 52.2%)
CIE-LABlab(46.51, -30.47, 41.78)
CIE-LCHlch(46.51, 51.71, 126.11°)
OKLaboklab(52.86% -0.0858 0.0944)
OKLCHoklch(52.86% 0.128 132.3)
XYZxyz(10.3758, 15.6482, 3.9123)
Luminance0.1565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7A21 #4D217A
analogous
#7A7921 #4E7A21 #217A21
triadic
#4E7A21 #214E7A #7A214E
tetradic
#4E7A21 #217A79 #4D217A #7A2121
square
#4E7A21 #217A79 #4D217A #7A2121
split-complementary
#4E7A21 #21217A #79217A
monochromatic
#101A07 #2F4A14 #4E7A21 #6DAA2E #8BCD48

Accessibility & contrast

On white

5.08
#4E7A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#4E7A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7A21
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7A21#FFFFFF#000000##FFFFFF
##4E7A211.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7013
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#4F7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4e7a21;
/* rgb */ color: rgb(78, 122, 33);
/* oklch */ color: oklch(52.9% 0.128 132.3);
Tailwind
colors: {
  custom: {
    50: '#83a162',
    500: '#4e7a21',
    950: '#000000',
  },
}
SCSS
$custom: #4e7a21;
$custom-light: #83a162;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7a21",
  "rgb": {
    "r": 78,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 89.663,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5286,
    "c": 0.12757,
    "h": 132.3
  },
  "luminance": 0.15649
}

Semantic roles & 50–950 ramp

primary
#4E7A21
secondary
#7B4AAD
accent
#47E193
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4E7A21

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

Preview Lab → · Contrast checker → · Palette generator →

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