#978E40#978E40

#978E40 is a light, moderate yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.100 H 102.8°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#978E40
RGBrgb(151, 142, 64)
HSLhsl(54, 40%, 42%)
HSVhsv(54, 58%, 59%)
CMYKcmyk(0%, 6%, 57.6%, 40.8%)
CIE-LABlab(58.32, -7.13, 42.01)
CIE-LCHlch(58.32, 42.61, 99.63°)
OKLaboklab(63.82% -0.0221 0.0977)
OKLCHoklch(63.82% 0.1 102.8)
XYZxyz(23.3617, 26.2963, 8.6946)
Luminance0.2630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E40 #404997
analogous
#976340 #978E40 #759740
triadic
#978E40 #40978E #8E4097
tetradic
#978E40 #409763 #404997 #974075
square
#978E40 #409763 #404997 #974075
split-complementary
#978E40 #407597 #634097
monochromatic
#413D1C #6C662E #978E40 #B9B05B #CCC486

Accessibility & contrast

On white

3.36
#978E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#978E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E40
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E40#FFFFFF#000000##000000
##978E401.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A38
Deuteranopia (green-blind)
#9C8E44
Tritanopia (blue-blind)
#A1857D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e40;
/* rgb */ color: rgb(151, 142, 64);
/* oklch */ color: oklch(63.8% 0.100 102.8);
Tailwind
colors: {
  custom: {
    50: '#b8ae78',
    500: '#978e40',
    950: '#000000',
  },
}
SCSS
$custom: #978e40;
$custom-light: #b8ae78;
$custom-dark: #000000;
JSON
{
  "hex": "#978e40",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 53.793,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.63821,
    "c": 0.10015,
    "h": 102.8
  },
  "luminance": 0.26295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978E40

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

Preview Lab → · Contrast checker → · Palette generator →

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