#978D2D#978D2D

#978D2D is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.4% C 0.115 H 103.3°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#978D2D
RGBrgb(151, 141, 45)
HSLhsl(54, 54%, 38%)
HSVhsv(54, 70%, 59%)
CMYKcmyk(0%, 6.6%, 70.2%, 40.8%)
CIE-LABlab(57.87, -7.89, 50.13)
CIE-LCHlch(57.87, 50.75, 98.94°)
OKLaboklab(63.41% -0.0265 0.1121)
OKLCHoklch(63.41% 0.115 103.3)
XYZxyz(22.7620, 25.8194, 6.2668)
Luminance0.2582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2D #2D3797
analogous
#97582D #978D2D #6C972D
triadic
#978D2D #2D978D #8D2D97
tetradic
#978D2D #2D9758 #2D3797 #972D6C
square
#978D2D #2D9758 #2D3797 #972D6C
split-complementary
#978D2D #2D6C97 #582D97
monochromatic
#393511 #68611F #978D2D #C5B83C #D3C96B

Accessibility & contrast

On white

3.41
#978D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#978D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D2D
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D2D#FFFFFF#000000##000000
##978D2D1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A881F
Deuteranopia (green-blind)
#9D8D33
Tritanopia (blue-blind)
#A2837A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2d;
/* rgb */ color: rgb(151, 141, 45);
/* oklch */ color: oklch(63.4% 0.115 103.3);
Tailwind
colors: {
  custom: {
    50: '#b9ae6c',
    500: '#978d2d',
    950: '#000000',
  },
}
SCSS
$custom: #978d2d;
$custom-light: #b9ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2d",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 54.34,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63407,
    "c": 0.11514,
    "h": 103.3
  },
  "luminance": 0.25819
}

Semantic roles & 50–950 ramp

primary
#978D2D
secondary
#666EBA
accent
#58DD4A
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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