#4F771A#4F771A

#4F771A is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.1% C 0.128 H 130.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4F771A
RGBrgb(79, 119, 26)
HSLhsl(86, 64%, 28%)
HSVhsv(86, 78%, 47%)
CMYKcmyk(33.6%, 0%, 78.2%, 53.3%)
CIE-LABlab(45.54, -29.15, 43.55)
CIE-LCHlch(45.54, 52.40, 123.80°)
OKLaboklab(52.07% -0.0828 0.097)
OKLCHoklch(52.07% 0.128 130.5)
XYZxyz(10.0077, 14.9302, 3.3316)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F771A #421A77
analogous
#77701A #4F771A #21771A
triadic
#4F771A #1A4F77 #771A4F
tetradic
#4F771A #1A7770 #421A77 #771A21
square
#4F771A #1A7770 #421A77 #771A21
split-complementary
#4F771A #1A2177 #701A77
monochromatic
#111905 #2E450F #4F771A #70A925 #91D338

Accessibility & contrast

On white

5.27
#4F771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4F771A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F771A#FFFFFF#000000##FFFFFF
##4F771A1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E06
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#517265
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4f771a;
/* rgb */ color: rgb(79, 119, 26);
/* oklch */ color: oklch(52.1% 0.128 130.5);
Tailwind
colors: {
  custom: {
    50: '#849e5e',
    500: '#4f771a',
    950: '#000000',
  },
}
SCSS
$custom: #4f771a;
$custom-light: #849e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f771a",
  "rgb": {
    "r": 79,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 85.806,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52068,
    "c": 0.12753,
    "h": 130.5
  },
  "luminance": 0.1493
}

Semantic roles & 50–950 ramp

primary
#4F771A
secondary
#6F41AC
accent
#41E788
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F771A

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

Preview Lab → · Contrast checker → · Palette generator →

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