#978F3D#978F3D

#978F3D is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.0% C 0.104 H 103.7°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#978F3D
RGBrgb(151, 143, 61)
HSLhsl(55, 42%, 42%)
HSVhsv(55, 60%, 59%)
CMYKcmyk(0%, 5.3%, 59.6%, 40.8%)
CIE-LABlab(58.57, -7.91, 43.74)
CIE-LCHlch(58.57, 44.45, 100.25°)
OKLaboklab(64.01% -0.0247 0.101)
OKLCHoklch(64.01% 0.104 103.7)
XYZxyz(23.4281, 26.5620, 8.3069)
Luminance0.2656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F3D #3D4597
analogous
#97623D #978F3D #72973D
triadic
#978F3D #3D978F #8F3D97
tetradic
#978F3D #3D9762 #3D4597 #973D72
square
#978F3D #3D9762 #3D4597 #973D72
split-complementary
#978F3D #3D7297 #623D97
monochromatic
#403C1A #6B662B #978F3D #BBB256 #CCC682

Accessibility & contrast

On white

3.33
#978F3D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#978F3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F3D
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F3D#FFFFFF#000000##000000
##978F3D1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A34
Deuteranopia (green-blind)
#9D8F41
Tritanopia (blue-blind)
#A2867D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #978f3d;
/* rgb */ color: rgb(151, 143, 61);
/* oklch */ color: oklch(64.0% 0.104 103.7);
Tailwind
colors: {
  custom: {
    50: '#b8af76',
    500: '#978f3d',
    950: '#000000',
  },
}
SCSS
$custom: #978f3d;
$custom-light: #b8af76;
$custom-dark: #000000;
JSON
{
  "hex": "#978f3d",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 61
  },
  "hsl": {
    "h": 54.667,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.64009,
    "c": 0.10398,
    "h": 103.7
  },
  "luminance": 0.26561
}

Semantic roles & 50–950 ramp

primary
#978F3D
secondary
#797FB7
accent
#61D256
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #978F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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