#4E7F21#4E7F21

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

Color values

HEX#4E7F21
RGBrgb(78, 127, 33)
HSLhsl(91, 59%, 31%)
HSVhsv(91, 74%, 50%)
CMYKcmyk(38.6%, 0%, 74%, 50.2%)
CIE-LABlab(48.14, -32.78, 43.44)
CIE-LCHlch(48.14, 54.42, 127.04°)
OKLaboklab(54.19% -0.0921 0.0979)
OKLCHoklch(54.19% 0.134 133.2)
XYZxyz(11.0056, 16.9078, 4.1222)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F21 #52217F
analogous
#7D7F21 #4E7F21 #217F23
triadic
#4E7F21 #214E7F #7F214E
tetradic
#4E7F21 #217D7F #52217F #7F2321
square
#4E7F21 #217D7F #52217F #7F2321
split-complementary
#4E7F21 #23217F #7F217D
monochromatic
#121E08 #304E14 #4E7F21 #6CB02E #8AD04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E7F21#FFFFFF#000000##FFFFFF
##4E7F211.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)
#847511
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#4E7A6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4e7f21;
/* rgb */ color: rgb(78, 127, 33);
/* oklch */ color: oklch(54.2% 0.134 133.2);
Tailwind
colors: {
  custom: {
    50: '#84a463',
    500: '#4e7f21',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f21;
$custom-light: #84a463;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f21",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 91.277,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54194,
    "c": 0.13436,
    "h": 133.2
  },
  "luminance": 0.16908
}

Semantic roles & 50–950 ramp

primary
#4E7F21
secondary
#804AB2
accent
#46E297
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4E7F21

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

Preview Lab → · Contrast checker → · Palette generator →

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