#4F771F#4F771F

#4F771F is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.124 H 131.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#4F771F
RGBrgb(79, 119, 31)
HSLhsl(87, 59%, 29%)
HSVhsv(87, 74%, 47%)
CMYKcmyk(33.6%, 0%, 73.9%, 53.3%)
CIE-LABlab(45.57, -28.82, 41.66)
CIE-LCHlch(45.57, 50.65, 124.67°)
OKLaboklab(52.11% -0.0815 0.0938)
OKLCHoklch(52.11% 0.124 131)
XYZxyz(10.0685, 14.9545, 3.6521)
Luminance0.1495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F771F #471F77
analogous
#77731F #4F771F #23771F
triadic
#4F771F #1F4F77 #771F4F
tetradic
#4F771F #1F7773 #471F77 #771F23
square
#4F771F #1F7773 #471F77 #771F23
split-complementary
#4F771F #1F2377 #731F77
monochromatic
#101806 #2F4612 #4F771F #6FA82C #8FCE43

Accessibility & contrast

On white

5.26
#4F771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4F771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F771F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F771F#FFFFFF#000000##FFFFFF
##4F771F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#517266
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4f771f;
/* rgb */ color: rgb(79, 119, 31);
/* oklch */ color: oklch(52.1% 0.124 131.0);
Tailwind
colors: {
  custom: {
    50: '#849e61',
    500: '#4f771f',
    950: '#000000',
  },
}
SCSS
$custom: #4f771f;
$custom-light: #849e61;
$custom-dark: #000000;
JSON
{
  "hex": "#4f771f",
  "rgb": {
    "r": 79,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 87.273,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52106,
    "c": 0.1243,
    "h": 131
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#4F771F
secondary
#7447AB
accent
#46E28D
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F771F

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

Preview Lab → · Contrast checker → · Palette generator →

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