#978B2D#978B2D

#978B2D is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.113 H 101.9°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#978B2D
RGBrgb(151, 139, 45)
HSLhsl(53, 54%, 38%)
HSVhsv(53, 70%, 59%)
CMYKcmyk(0%, 7.9%, 70.2%, 40.8%)
CIE-LABlab(57.30, -6.80, 49.57)
CIE-LCHlch(57.30, 50.03, 97.81°)
OKLaboklab(62.96% -0.0234 0.1109)
OKLCHoklch(62.96% 0.113 101.9)
XYZxyz(22.4697, 25.2350, 6.1694)
Luminance0.2523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2D #2D3997
analogous
#97562D #978B2D #6E972D
triadic
#978B2D #2D978B #8B2D97
tetradic
#978B2D #2D9756 #2D3997 #972D6E
square
#978B2D #2D9756 #2D3997 #972D6E
split-complementary
#978B2D #2D6E97 #562D97
monochromatic
#393411 #68601F #978B2D #C5B53C #D3C76B

Accessibility & contrast

On white

3.47
#978B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#978B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B2D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B2D#FFFFFF#000000##000000
##978B2D1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871F
Deuteranopia (green-blind)
#9B8C33
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b2d;
/* rgb */ color: rgb(151, 139, 45);
/* oklch */ color: oklch(63.0% 0.113 101.9);
Tailwind
colors: {
  custom: {
    50: '#b9ac6c',
    500: '#978b2d',
    950: '#000000',
  },
}
SCSS
$custom: #978b2d;
$custom-light: #b9ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2d",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 53.208,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.62961,
    "c": 0.11331,
    "h": 101.9
  },
  "luminance": 0.25234
}

Semantic roles & 50–950 ramp

primary
#978B2D
secondary
#666FBA
accent
#5BDD4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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