#978B3F#978B3F

#978B3F is a light, moderate yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.098 H 100.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#978B3F
RGBrgb(151, 139, 63)
HSLhsl(52, 41%, 42%)
HSVhsv(52, 58%, 59%)
CMYKcmyk(0%, 7.9%, 58.3%, 40.8%)
CIE-LABlab(57.47, -5.57, 41.53)
CIE-LCHlch(57.47, 41.90, 97.65°)
OKLaboklab(63.14% -0.0178 0.0965)
OKLCHoklch(63.14% 0.098 100.4)
XYZxyz(22.8931, 25.4043, 8.3993)
Luminance0.2540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B3F #3F4B97
analogous
#975F3F #978B3F #77973F
triadic
#978B3F #3F978B #8B3F97
tetradic
#978B3F #3F975F #3F4B97 #973F77
square
#978B3F #3F975F #3F4B97 #973F77
split-complementary
#978B3F #3F7797 #5F3F97
monochromatic
#413B1B #6C632D #978B3F #BAAD59 #CCC285

Accessibility & contrast

On white

3.45
#978B3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#978B3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B3F
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B3F#FFFFFF#000000##000000
##978B3F1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978737
Deuteranopia (green-blind)
#9A8C43
Tritanopia (blue-blind)
#A2827A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b3f;
/* rgb */ color: rgb(151, 139, 63);
/* oklch */ color: oklch(63.1% 0.098 100.4);
Tailwind
colors: {
  custom: {
    50: '#b8ac77',
    500: '#978b3f',
    950: '#000000',
  },
}
SCSS
$custom: #978b3f;
$custom-light: #b8ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#978b3f",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 63
  },
  "hsl": {
    "h": 51.818,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.63143,
    "c": 0.09815,
    "h": 100.4
  },
  "luminance": 0.25403
}

Semantic roles & 50–950 ramp

primary
#978B3F
secondary
#7C84B6
accent
#67D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #978B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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