#978D40#978D40

#978D40 is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.6% C 0.099 H 102.0°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#978D40
RGBrgb(151, 141, 64)
HSLhsl(53, 40%, 42%)
HSVhsv(53, 58%, 59%)
CMYKcmyk(0%, 6.6%, 57.6%, 40.8%)
CIE-LABlab(58.04, -6.59, 41.69)
CIE-LCHlch(58.04, 42.21, 98.98°)
OKLaboklab(63.6% -0.0206 0.097)
OKLCHoklch(63.6% 0.099 102)
XYZxyz(23.2136, 26.0001, 8.6452)
Luminance0.2600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D40 #404A97
analogous
#976140 #978D40 #769740
triadic
#978D40 #40978D #8D4097
tetradic
#978D40 #409761 #404A97 #974076
square
#978D40 #409761 #404A97 #974076
split-complementary
#978D40 #407697 #614097
monochromatic
#413D1C #6C652E #978D40 #B9AF5B #CCC486

Accessibility & contrast

On white

3.39
#978D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#978D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D40
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D40#FFFFFF#000000##000000
##978D401.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998938
Deuteranopia (green-blind)
#9C8D44
Tritanopia (blue-blind)
#A2847C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d40;
/* rgb */ color: rgb(151, 141, 64);
/* oklch */ color: oklch(63.6% 0.099 102.0);
Tailwind
colors: {
  custom: {
    50: '#b8ae77',
    500: '#978d40',
    950: '#000000',
  },
}
SCSS
$custom: #978d40;
$custom-light: #b8ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#978d40",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 53.103,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.63599,
    "c": 0.09915,
    "h": 102
  },
  "luminance": 0.25999
}

Semantic roles & 50–950 ramp

primary
#978D40
secondary
#7D83B6
accent
#65D057
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #978D40

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

Preview Lab → · Contrast checker → · Palette generator →

#978D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva