#978D2C#978D2C

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

Color values

HEX#978D2C
RGBrgb(151, 141, 44)
HSLhsl(54, 55%, 38%)
HSVhsv(54, 71%, 59%)
CMYKcmyk(0%, 6.6%, 70.9%, 40.8%)
CIE-LABlab(57.86, -7.94, 50.54)
CIE-LCHlch(57.86, 51.16, 98.93°)
OKLaboklab(63.4% -0.0268 0.1127)
OKLCHoklch(63.4% 0.116 103.4)
XYZxyz(22.7429, 25.8118, 6.1666)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2C #2C3697
analogous
#97582C #978D2C #6B972C
triadic
#978D2C #2C978D #8D2C97
tetradic
#978D2C #2C9758 #2C3697 #972C6B
square
#978D2C #2C9758 #2C3697 #972C6B
split-complementary
#978D2C #2C6B97 #582C97
monochromatic
#383410 #68611E #978D2C #C6B93A #D4CA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978D2C#FFFFFF#000000##000000
##978D2C1.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)
#9A881D
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#A2837A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2c;
/* rgb */ color: rgb(151, 141, 44);
/* oklch */ color: oklch(63.4% 0.116 103.4);
Tailwind
colors: {
  custom: {
    50: '#b9ae6b',
    500: '#978d2c',
    950: '#000000',
  },
}
SCSS
$custom: #978d2c;
$custom-light: #b9ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2c",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 54.393,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63399,
    "c": 0.11586,
    "h": 103.4
  },
  "luminance": 0.25811
}

Semantic roles & 50–950 ramp

primary
#978D2C
secondary
#656DBA
accent
#57DE4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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