#4D981B#4D981B

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

Color values

HEX#4D981B
RGBrgb(77, 152, 27)
HSLhsl(96, 70%, 35%)
HSVhsv(96, 82%, 60%)
CMYKcmyk(49.3%, 0%, 82.2%, 40.4%)
CIE-LABlab(56.20, -44.13, 53.21)
CIE-LCHlch(56.20, 69.13, 129.67°)
OKLaboklab(60.78% -0.123 0.1174)
OKLCHoklch(60.78% 0.17 136.3)
XYZxyz(14.4862, 24.1124, 4.9275)
Luminance0.2411 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D981B #661B98
analogous
#8B981B #4D981B #1B9828
triadic
#4D981B #1B4D98 #981B4D
tetradic
#4D981B #1B8B98 #661B98 #98281B
square
#4D981B #1B8B98 #661B98 #98281B
split-complementary
#4D981B #281B98 #981B8B
monochromatic
#183009 #336412 #4D981B #67CC24 #88E04E

Accessibility & contrast

On white

3.61
#4D981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#4D981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D981B
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D981B#FFFFFF#000000##000000
##4D981B1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#94842A
Tritanopia (blue-blind)
#499281
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #4d981b;
/* rgb */ color: rgb(77, 152, 27);
/* oklch */ color: oklch(60.8% 0.170 136.3);
Tailwind
colors: {
  custom: {
    50: '#87b763',
    500: '#4d981b',
    950: '#000000',
  },
}
SCSS
$custom: #4d981b;
$custom-light: #87b763;
$custom-dark: #000000;
JSON
{
  "hex": "#4d981b",
  "rgb": {
    "r": 77,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 96,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60777,
    "c": 0.17005,
    "h": 136.3
  },
  "luminance": 0.24113
}

Semantic roles & 50–950 ramp

primary
#4D981B
secondary
#934DC2
accent
#3BEDA6
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1106
muted
#7D807A

Preview Lab

Preview with #4D981B

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

Preview Lab → · Contrast checker → · Palette generator →

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