#4E981F#4E981F

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

Color values

HEX#4E981F
RGBrgb(78, 152, 31)
HSLhsl(97, 66%, 36%)
HSVhsv(97, 80%, 60%)
CMYKcmyk(48.7%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.26, -43.59, 52.06)
CIE-LCHlch(56.26, 67.90, 129.94°)
OKLaboklab(60.85% -0.1214 0.1156)
OKLCHoklch(60.85% 0.168 136.4)
XYZxyz(14.6170, 24.1741, 5.1919)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E981F #691F98
analogous
#8A981F #4E981F #1F982C
triadic
#4E981F #1F4E98 #981F4E
tetradic
#4E981F #1F8A98 #691F98 #982C1F
square
#4E981F #1F8A98 #691F98 #982C1F
split-complementary
#4E981F #2C1F98 #981F8A
monochromatic
#1A320A #346515 #4E981F #68CB29 #8ADC55

Accessibility & contrast

On white

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

On black

5.84
#4E981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4E981F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E981F#FFFFFF#000000##000000
##4E981F1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#4A9282
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #4e981f;
/* rgb */ color: rgb(78, 152, 31);
/* oklch */ color: oklch(60.8% 0.168 136.4);
Tailwind
colors: {
  custom: {
    50: '#87b765',
    500: '#4e981f',
    950: '#000000',
  },
}
SCSS
$custom: #4e981f;
$custom-light: #87b765;
$custom-dark: #000000;
JSON
{
  "hex": "#4e981f",
  "rgb": {
    "r": 78,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 96.694,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60846,
    "c": 0.16764,
    "h": 136.4
  },
  "luminance": 0.24175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E981F

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

Preview Lab → · Contrast checker → · Palette generator →

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