#978D38#978D38

#978D38 is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.5% C 0.106 H 102.6°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#978D38
RGBrgb(151, 141, 56)
HSLhsl(54, 46%, 41%)
HSVhsv(54, 63%, 59%)
CMYKcmyk(0%, 6.6%, 62.9%, 40.8%)
CIE-LABlab(57.96, -7.19, 45.41)
CIE-LCHlch(57.96, 45.98, 99.00°)
OKLaboklab(63.51% -0.0233 0.1039)
OKLCHoklch(63.51% 0.106 102.6)
XYZxyz(23.0020, 25.9155, 7.5312)
Luminance0.2591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D38 #384297
analogous
#975D38 #978D38 #719738
triadic
#978D38 #38978D #8D3897
tetradic
#978D38 #38975D #384297 #973871
square
#978D38 #38975D #384297 #973871
split-complementary
#978D38 #387197 #5D3897
monochromatic
#3E3A17 #6A6327 #978D38 #BEB24F #CEC57B

Accessibility & contrast

On white

3.40
#978D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#978D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D38
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D38#FFFFFF#000000##000000
##978D381.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#99892E
Deuteranopia (green-blind)
#9C8D3D
Tritanopia (blue-blind)
#A2847B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d38;
/* rgb */ color: rgb(151, 141, 56);
/* oklch */ color: oklch(63.5% 0.106 102.6);
Tailwind
colors: {
  custom: {
    50: '#b8ae72',
    500: '#978d38',
    950: '#000000',
  },
}
SCSS
$custom: #978d38;
$custom-light: #b8ae72;
$custom-dark: #000000;
JSON
{
  "hex": "#978d38",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 53.684,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63509,
    "c": 0.10644,
    "h": 102.6
  },
  "luminance": 0.25915
}

Semantic roles & 50–950 ramp

primary
#978D38
secondary
#737BB7
accent
#60D652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #978D38

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

Preview Lab → · Contrast checker → · Palette generator →

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