#4E7F20#4E7F20

#4E7F20 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.2% C 0.135 H 133.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#4E7F20
RGBrgb(78, 127, 32)
HSLhsl(91, 60%, 31%)
HSVhsv(91, 75%, 50%)
CMYKcmyk(38.6%, 0%, 74.8%, 50.2%)
CIE-LABlab(48.14, -32.85, 43.82)
CIE-LCHlch(48.14, 54.77, 126.86°)
OKLaboklab(54.19% -0.0923 0.0985)
OKLCHoklch(54.19% 0.135 133.1)
XYZxyz(10.9918, 16.9022, 4.0495)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F20 #51207F
analogous
#7D7F20 #4E7F20 #207F21
triadic
#4E7F20 #204E7F #7F204E
tetradic
#4E7F20 #207D7F #51207F #7F2120
square
#4E7F20 #207D7F #51207F #7F2120
split-complementary
#4E7F20 #21207F #7F207D
monochromatic
#121D07 #304E14 #4E7F20 #6CB02C #8BD148

Accessibility & contrast

On white

4.79
#4E7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#4E7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F20
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F20#FFFFFF#000000##FFFFFF
##4E7F201.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750F
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#4E7A6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4e7f20;
/* rgb */ color: rgb(78, 127, 32);
/* oklch */ color: oklch(54.2% 0.135 133.1);
Tailwind
colors: {
  custom: {
    50: '#84a462',
    500: '#4e7f20',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f20;
$custom-light: #84a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f20",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 90.947,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.13503,
    "h": 133.1
  },
  "luminance": 0.16903
}

Semantic roles & 50–950 ramp

primary
#4E7F20
secondary
#7F49B2
accent
#45E396
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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