#4B771B#4B771B

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

Color values

HEX#4B771B
RGBrgb(75, 119, 27)
HSLhsl(89, 63%, 29%)
HSVhsv(89, 77%, 47%)
CMYKcmyk(37%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.32, -30.66, 42.88)
CIE-LCHlch(45.32, 52.72, 125.57°)
OKLaboklab(51.83% -0.0866 0.0958)
OKLCHoklch(51.83% 0.129 132.1)
XYZxyz(9.6962, 14.7682, 3.3764)
Luminance0.1477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B771B #471B77
analogous
#77751B #4B771B #1D771B
triadic
#4B771B #1B4B77 #771B4B
tetradic
#4B771B #1B7775 #471B77 #771B1D
square
#4B771B #1B7775 #471B77 #771B1D
split-complementary
#4B771B #1B1D77 #751B77
monochromatic
#101906 #2C4510 #4B771B #6AA926 #8AD23A

Accessibility & contrast

On white

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

On black

3.95
#4B771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4B771B#FFFFFF#000000##FFFFFF
##4B771B1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D08
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#4C7265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4b771b;
/* rgb */ color: rgb(75, 119, 27);
/* oklch */ color: oklch(51.8% 0.129 132.1);
Tailwind
colors: {
  custom: {
    50: '#819e5f',
    500: '#4b771b',
    950: '#000000',
  },
}
SCSS
$custom: #4b771b;
$custom-light: #819e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4b771b",
  "rgb": {
    "r": 75,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 88.696,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.12916,
    "h": 132.1
  },
  "luminance": 0.14769
}

Semantic roles & 50–950 ramp

primary
#4B771B
secondary
#7542AB
accent
#42E690
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B771B

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

Preview Lab → · Contrast checker → · Palette generator →

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