#4F8731#4F8731

#4F8731 is a mid, vivid yellow-green. Relative luminance 0.192; OKLCH L 56.5% C 0.133 H 136.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4F8731
RGBrgb(79, 135, 49)
HSLhsl(99, 47%, 36%)
HSVhsv(99, 64%, 53%)
CMYKcmyk(41.5%, 0%, 63.7%, 47.1%)
CIE-LABlab(50.93, -34.63, 39.47)
CIE-LCHlch(50.93, 52.51, 131.26°)
OKLaboklab(56.53% -0.0959 0.0917)
OKLCHoklch(56.53% 0.133 136.3)
XYZxyz(12.4425, 19.2113, 5.9577)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8731 #693187
analogous
#7A8731 #4F8731 #31873E
triadic
#4F8731 #314F87 #87314F
tetradic
#4F8731 #317A87 #693187 #873E31
square
#4F8731 #317A87 #693187 #873E31
split-complementary
#4F8731 #3E3187 #87317A
monochromatic
#1A2D10 #355A21 #4F8731 #69B441 #8BC96A

Accessibility & contrast

On white

4.34
#4F8731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#4F8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8731
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8731#FFFFFF#000000##000000
##4F87311.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C27
Deuteranopia (green-blind)
#847838
Tritanopia (blue-blind)
#4D8275
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4f8731;
/* rgb */ color: rgb(79, 135, 49);
/* oklch */ color: oklch(56.5% 0.133 136.3);
Tailwind
colors: {
  custom: {
    50: '#85aa6d',
    500: '#4f8731',
    950: '#000000',
  },
}
SCSS
$custom: #4f8731;
$custom-light: #85aa6d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8731",
  "rgb": {
    "r": 79,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 99.07,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.13265,
    "h": 136.3
  },
  "luminance": 0.19212
}

Semantic roles & 50–950 ramp

primary
#4F8731
secondary
#9564B0
accent
#51D6A8
background
#F8FAF6
surface
#EFF4EC
border
#CACEC7
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #4F8731

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

Preview Lab → · Contrast checker → · Palette generator →

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