#4D9C1F#4D9C1F

#4D9C1F is a mid, vivid yellow-green. Relative luminance 0.255; OKLCH L 61.9% C 0.173 H 137.0°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#4D9C1F
RGBrgb(77, 156, 31)
HSLhsl(98, 67%, 37%)
HSVhsv(98, 80%, 61%)
CMYKcmyk(50.6%, 0%, 80.1%, 38.8%)
CIE-LABlab(57.51, -45.50, 53.23)
CIE-LCHlch(57.51, 70.02, 130.52°)
OKLaboklab(61.86% -0.1264 0.1181)
OKLCHoklch(61.86% 0.173 137)
XYZxyz(15.1959, 25.4526, 5.4082)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D9C1F #6E1F9C
analogous
#8C9C1F #4D9C1F #1F9C30
triadic
#4D9C1F #1F4D9C #9C1F4D
tetradic
#4D9C1F #1F8C9C #6E1F9C #9C301F
square
#4D9C1F #1F8C9C #6E1F9C #9C301F
split-complementary
#4D9C1F #301F9C #9C1F8C
monochromatic
#1B360B #346915 #4D9C1F #66CF29 #89DE58

Accessibility & contrast

On white

3.45
#4D9C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#4D9C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D9C1F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D9C1F#FFFFFF#000000##000000
##4D9C1F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#97882D
Tritanopia (blue-blind)
#489685
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #4d9c1f;
/* rgb */ color: rgb(77, 156, 31);
/* oklch */ color: oklch(61.9% 0.173 137.0);
Tailwind
colors: {
  custom: {
    50: '#87ba66',
    500: '#4d9c1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d9c1f;
$custom-light: #87ba66;
$custom-dark: #000000;
JSON
{
  "hex": "#4d9c1f",
  "rgb": {
    "r": 77,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 97.92,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61864,
    "c": 0.173,
    "h": 137
  },
  "luminance": 0.25454
}

Semantic roles & 50–950 ramp

primary
#4D9C1F
secondary
#9A55C1
accent
#3EEAAB
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1206
muted
#7D817A

Preview Lab

Preview with #4D9C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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