#4D981F#4D981F

#4D981F is a mid, vivid yellow-green. Relative luminance 0.241; OKLCH L 60.8% C 0.168 H 136.6°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4D981F
RGBrgb(77, 152, 31)
HSLhsl(97, 66%, 36%)
HSVhsv(97, 80%, 60%)
CMYKcmyk(49.3%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.22, -43.91, 52.01)
CIE-LCHlch(56.22, 68.07, 130.17°)
OKLaboklab(60.8% -0.1222 0.1155)
OKLCHoklch(60.8% 0.168 136.6)
XYZxyz(14.5357, 24.1322, 5.1881)
Luminance0.2413 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D981F #6A1F98
analogous
#89981F #4D981F #1F982D
triadic
#4D981F #1F4D98 #981F4D
tetradic
#4D981F #1F8998 #6A1F98 #982D1F
square
#4D981F #1F8998 #6A1F98 #982D1F
split-complementary
#4D981F #2D1F98 #981F89
monochromatic
#19320A #336515 #4D981F #67CB29 #88DC55

Accessibility & contrast

On white

3.60
#4D981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#4D981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D981F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D981F#FFFFFF#000000##000000
##4D981F1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#94842D
Tritanopia (blue-blind)
#499282
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #4d981f;
/* rgb */ color: rgb(77, 152, 31);
/* oklch */ color: oklch(60.8% 0.168 136.6);
Tailwind
colors: {
  custom: {
    50: '#86b765',
    500: '#4d981f',
    950: '#000000',
  },
}
SCSS
$custom: #4d981f;
$custom-light: #86b765;
$custom-dark: #000000;
JSON
{
  "hex": "#4d981f",
  "rgb": {
    "r": 77,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 97.19,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.608,
    "c": 0.16814,
    "h": 136.6
  },
  "luminance": 0.24133
}

Semantic roles & 50–950 ramp

primary
#4D981F
secondary
#9653C0
accent
#3FE9A8
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #4D981F

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

Preview Lab → · Contrast checker → · Palette generator →

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