#4F771B#4F771B

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

Color values

HEX#4F771B
RGBrgb(79, 119, 27)
HSLhsl(86, 63%, 29%)
HSVhsv(86, 77%, 47%)
CMYKcmyk(33.6%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.54, -29.09, 43.18)
CIE-LCHlch(45.54, 52.07, 123.96°)
OKLaboklab(52.08% -0.0826 0.0964)
OKLCHoklch(52.08% 0.127 130.6)
XYZxyz(10.0190, 14.9347, 3.3915)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F771B #431B77
analogous
#77711B #4F771B #21771B
triadic
#4F771B #1B4F77 #771B4F
tetradic
#4F771B #1B7771 #431B77 #771B21
square
#4F771B #1B7771 #431B77 #771B21
split-complementary
#4F771B #1B2177 #711B77
monochromatic
#111906 #2E4510 #4F771B #70A926 #90D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F771B#FFFFFF#000000##FFFFFF
##4F771B1.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)
#7D6E08
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#517265
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4f771b;
/* rgb */ color: rgb(79, 119, 27);
/* oklch */ color: oklch(52.1% 0.127 130.6);
Tailwind
colors: {
  custom: {
    50: '#849e5f',
    500: '#4f771b',
    950: '#000000',
  },
}
SCSS
$custom: #4f771b;
$custom-light: #849e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f771b",
  "rgb": {
    "r": 79,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 86.087,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52076,
    "c": 0.12693,
    "h": 130.6
  },
  "luminance": 0.14935
}

Semantic roles & 50–950 ramp

primary
#4F771B
secondary
#7042AB
accent
#42E689
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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