#978B38#978B38

#978B38 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.1% C 0.105 H 101.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#978B38
RGBrgb(151, 139, 56)
HSLhsl(52, 46%, 41%)
HSVhsv(52, 63%, 59%)
CMYKcmyk(0%, 7.9%, 62.9%, 40.8%)
CIE-LABlab(57.40, -6.10, 44.80)
CIE-LCHlch(57.40, 45.22, 97.76°)
OKLaboklab(63.06% -0.0201 0.1026)
OKLCHoklch(63.06% 0.105 101.1)
XYZxyz(22.7098, 25.3310, 7.4338)
Luminance0.2533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B38 #384497
analogous
#975B38 #978B38 #739738
triadic
#978B38 #38978B #8B3897
tetradic
#978B38 #38975B #384497 #973873
square
#978B38 #38975B #384497 #973873
split-complementary
#978B38 #387397 #5B3897
monochromatic
#3E3917 #6A6227 #978B38 #BEB04F #CEC47B

Accessibility & contrast

On white

3.46
#978B38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#978B38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B38
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B38#FFFFFF#000000##000000
##978B381.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97872F
Deuteranopia (green-blind)
#9B8C3C
Tritanopia (blue-blind)
#A28279
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b38;
/* rgb */ color: rgb(151, 139, 56);
/* oklch */ color: oklch(63.1% 0.105 101.1);
Tailwind
colors: {
  custom: {
    50: '#b8ac72',
    500: '#978b38',
    950: '#000000',
  },
}
SCSS
$custom: #978b38;
$custom-light: #b8ac72;
$custom-dark: #000000;
JSON
{
  "hex": "#978b38",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 56
  },
  "hsl": {
    "h": 52.421,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63064,
    "c": 0.10454,
    "h": 101.1
  },
  "luminance": 0.2533
}

Semantic roles & 50–950 ramp

primary
#978B38
secondary
#737CB7
accent
#63D652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #978B38

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

Preview Lab → · Contrast checker → · Palette generator →

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