#4F771C#4F771C

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

Color values

HEX#4F771C
RGBrgb(79, 119, 28)
HSLhsl(86, 62%, 29%)
HSVhsv(86, 76%, 47%)
CMYKcmyk(33.6%, 0%, 76.5%, 53.3%)
CIE-LABlab(45.55, -29.02, 42.81)
CIE-LCHlch(45.55, 51.72, 124.13°)
OKLaboklab(52.08% -0.0823 0.0958)
OKLCHoklch(52.08% 0.126 130.7)
XYZxyz(10.0308, 14.9394, 3.4535)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F771C #441C77
analogous
#77721C #4F771C #21771C
triadic
#4F771C #1C4F77 #771C4F
tetradic
#4F771C #1C7772 #441C77 #771C21
square
#4F771C #1C7772 #441C77 #771C21
split-complementary
#4F771C #1C2177 #721C77
monochromatic
#101906 #2E4510 #4F771C #70A928 #90D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F771C#FFFFFF#000000##FFFFFF
##4F771C1.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)
#7D6E0A
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#517265
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4f771c;
/* rgb */ color: rgb(79, 119, 28);
/* oklch */ color: oklch(52.1% 0.126 130.7);
Tailwind
colors: {
  custom: {
    50: '#849e5f',
    500: '#4f771c',
    950: '#000000',
  },
}
SCSS
$custom: #4f771c;
$custom-light: #849e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f771c",
  "rgb": {
    "r": 79,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 86.374,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52083,
    "c": 0.12629,
    "h": 130.7
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#4F771C
secondary
#7144AB
accent
#43E58A
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F771C

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

Preview Lab → · Contrast checker → · Palette generator →

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