#4B771F#4B771F

#4B771F is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.9% C 0.127 H 132.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#4B771F
RGBrgb(75, 119, 31)
HSLhsl(90, 59%, 29%)
HSVhsv(90, 74%, 47%)
CMYKcmyk(37%, 0%, 73.9%, 53.3%)
CIE-LABlab(45.34, -30.38, 41.35)
CIE-LCHlch(45.34, 51.31, 126.31°)
OKLaboklab(51.86% -0.0855 0.0933)
OKLCHoklch(51.86% 0.127 132.5)
XYZxyz(9.7457, 14.7880, 3.6369)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B771F #4B1F77
analogous
#77771F #4B771F #1F771F
triadic
#4B771F #1F4B77 #771F4B
tetradic
#4B771F #1F7777 #4B1F77 #771F1F
square
#4B771F #1F7777 #4B1F77 #771F1F
split-complementary
#4B771F #1F1F77 #771F77
monochromatic
#0F1806 #2C4612 #4B771F #6AA82C #88CE43

Accessibility & contrast

On white

5.31
#4B771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#4B771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B771F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B771F#FFFFFF#000000##FFFFFF
##4B771F1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#4C7266
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4b771f;
/* rgb */ color: rgb(75, 119, 31);
/* oklch */ color: oklch(51.9% 0.127 132.5);
Tailwind
colors: {
  custom: {
    50: '#819e61',
    500: '#4b771f',
    950: '#000000',
  },
}
SCSS
$custom: #4b771f;
$custom-light: #819e61;
$custom-dark: #000000;
JSON
{
  "hex": "#4b771f",
  "rgb": {
    "r": 75,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51858,
    "c": 0.12654,
    "h": 132.5
  },
  "luminance": 0.14788
}

Semantic roles & 50–950 ramp

primary
#4B771F
secondary
#7947AB
accent
#46E294
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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