#4D8B1F#4D8B1F

#4D8B1F is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.3% C 0.152 H 135.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4D8B1F
RGBrgb(77, 139, 31)
HSLhsl(94, 64%, 33%)
HSVhsv(94, 78%, 55%)
CMYKcmyk(44.6%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.00, -38.55, 47.97)
CIE-LCHlch(52.00, 61.54, 128.78°)
OKLaboklab(57.33% -0.1077 0.1071)
OKLCHoklch(57.33% 0.152 135.2)
XYZxyz(12.5402, 20.1412, 4.5229)
Luminance0.2014 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8B1F #5D1F8B
analogous
#838B1F #4D8B1F #1F8B27
triadic
#4D8B1F #1F4D8B #8B1F4D
tetradic
#4D8B1F #1F838B #5D1F8B #8B271F
square
#4D8B1F #1F838B #5D1F8B #8B271F
split-complementary
#4D8B1F #271F8B #8B1F83
monochromatic
#162709 #315914 #4D8B1F #69BD2A #88D74D

Accessibility & contrast

On white

4.18
#4D8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#4D8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8B1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8B1F#FFFFFF#000000##000000
##4D8B1F1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4B8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4d8b1f;
/* rgb */ color: rgb(77, 139, 31);
/* oklch */ color: oklch(57.3% 0.152 135.2);
Tailwind
colors: {
  custom: {
    50: '#85ad63',
    500: '#4d8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d8b1f;
$custom-light: #85ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8b1f",
  "rgb": {
    "r": 77,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 94.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57331,
    "c": 0.15189,
    "h": 135.2
  },
  "luminance": 0.20142
}

Semantic roles & 50–950 ramp

primary
#4D8B1F
secondary
#8B4CBA
accent
#41E7A0
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4D8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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