#4D871B#4D871B

#4D871B is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.2% C 0.149 H 134.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4D871B
RGBrgb(77, 135, 27)
HSLhsl(92, 67%, 32%)
HSVhsv(92, 80%, 53%)
CMYKcmyk(43%, 0%, 80%, 47.1%)
CIE-LABlab(50.67, -37.08, 48.06)
CIE-LCHlch(50.67, 60.70, 127.65°)
OKLaboklab(56.24% -0.104 0.1066)
OKLCHoklch(56.24% 0.149 134.3)
XYZxyz(11.9221, 18.9842, 4.0728)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D871B #551B87
analogous
#83871B #4D871B #1B871F
triadic
#4D871B #1B4D87 #871B4D
tetradic
#4D871B #1B8387 #551B87 #871F1B
square
#4D871B #1B8387 #551B87 #871F1B
split-complementary
#4D871B #1F1B87 #871B83
monochromatic
#132107 #305411 #4D871B #6ABA25 #89D943

Accessibility & contrast

On white

4.38
#4D871B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4D871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D871B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D871B#FFFFFF#000000##000000
##4D871B1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C00
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#4C8173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4d871b;
/* rgb */ color: rgb(77, 135, 27);
/* oklch */ color: oklch(56.2% 0.149 134.3);
Tailwind
colors: {
  custom: {
    50: '#84aa61',
    500: '#4d871b',
    950: '#000000',
  },
}
SCSS
$custom: #4d871b;
$custom-light: #84aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#4d871b",
  "rgb": {
    "r": 77,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 92.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56235,
    "c": 0.14898,
    "h": 134.3
  },
  "luminance": 0.18985
}

Semantic roles & 50–950 ramp

primary
#4D871B
secondary
#8344BA
accent
#3EEA9A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #4D871B

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

Preview Lab → · Contrast checker → · Palette generator →

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