#4E7D21#4E7D21

#4E7D21 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.7% C 0.132 H 132.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#4E7D21
RGBrgb(78, 125, 33)
HSLhsl(91, 58%, 31%)
HSVhsv(91, 74%, 49%)
CMYKcmyk(37.6%, 0%, 73.6%, 51%)
CIE-LABlab(47.49, -31.86, 42.78)
CIE-LCHlch(47.49, 53.34, 126.68°)
OKLaboklab(53.66% -0.0896 0.0965)
OKLCHoklch(53.66% 0.132 132.9)
XYZxyz(10.7499, 16.3963, 4.0369)
Luminance0.1640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7D21 #50217D
analogous
#7C7D21 #4E7D21 #217D22
triadic
#4E7D21 #214E7D #7D214E
tetradic
#4E7D21 #217C7D #50217D #7D2221
square
#4E7D21 #217C7D #50217D #7D2221
split-complementary
#4E7D21 #22217D #7D217C
monochromatic
#121C07 #304D14 #4E7D21 #6CAD2E #8BCF49

Accessibility & contrast

On white

4.91
#4E7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#4E7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7D21
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7D21#FFFFFF#000000##FFFFFF
##4E7D211.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827312
Deuteranopia (green-blind)
#7C6F29
Tritanopia (blue-blind)
#4F786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4e7d21;
/* rgb */ color: rgb(78, 125, 33);
/* oklch */ color: oklch(53.7% 0.132 132.9);
Tailwind
colors: {
  custom: {
    50: '#84a362',
    500: '#4e7d21',
    950: '#000000',
  },
}
SCSS
$custom: #4e7d21;
$custom-light: #84a362;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7d21",
  "rgb": {
    "r": 78,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 90.652,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.13166,
    "h": 132.9
  },
  "luminance": 0.16397
}

Semantic roles & 50–950 ramp

primary
#4E7D21
secondary
#7E4AB0
accent
#46E196
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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