#4E7F31#4E7F31

#4E7F31 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.122 H 135.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4E7F31
RGBrgb(78, 127, 49)
HSLhsl(98, 44%, 35%)
HSVhsv(98, 61%, 50%)
CMYKcmyk(38.6%, 0%, 61.4%, 50.2%)
CIE-LABlab(48.28, -31.34, 36.48)
CIE-LCHlch(48.28, 48.09, 130.67°)
OKLaboklab(54.36% -0.0868 0.0853)
OKLCHoklch(54.36% 0.122 135.5)
XYZxyz(11.2854, 17.0197, 5.5956)
Luminance0.1702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7F31 #62317F
analogous
#757F31 #4E7F31 #317F3B
triadic
#4E7F31 #314E7F #7F314E
tetradic
#4E7F31 #31757F #62317F #7F3B31
square
#4E7F31 #31757F #62317F #7F3B31
split-complementary
#4E7F31 #3B317F #7F3175
monochromatic
#18270F #335320 #4E7F31 #69AB42 #89C466

Accessibility & contrast

On white

4.77
#4E7F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4E7F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7F31
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7F31#FFFFFF#000000##FFFFFF
##4E7F311.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837529
Deuteranopia (green-blind)
#7D7137
Tritanopia (blue-blind)
#4D7A6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4e7f31;
/* rgb */ color: rgb(78, 127, 49);
/* oklch */ color: oklch(54.4% 0.122 135.5);
Tailwind
colors: {
  custom: {
    50: '#83a46c',
    500: '#4e7f31',
    950: '#000000',
  },
}
SCSS
$custom: #4e7f31;
$custom-light: #83a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7f31",
  "rgb": {
    "r": 78,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 97.692,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.12171,
    "h": 135.5
  },
  "luminance": 0.1702
}

Semantic roles & 50–950 ramp

primary
#4E7F31
secondary
#9060AB
accent
#54D4A4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4E7F31

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

Preview Lab → · Contrast checker → · Palette generator →

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