#978B2C#978B2C

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

Color values

HEX#978B2C
RGBrgb(151, 139, 44)
HSLhsl(53, 55%, 38%)
HSVhsv(53, 71%, 59%)
CMYKcmyk(0%, 7.9%, 70.9%, 40.8%)
CIE-LABlab(57.30, -6.86, 49.97)
CIE-LCHlch(57.30, 50.44, 97.81°)
OKLaboklab(62.95% -0.0237 0.1115)
OKLCHoklch(62.95% 0.114 102)
XYZxyz(22.4507, 25.2274, 6.0692)
Luminance0.2523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2C #2C3897
analogous
#97552C #978B2C #6D972C
triadic
#978B2C #2C978B #8B2C97
tetradic
#978B2C #2C9755 #2C3897 #972C6D
square
#978B2C #2C9755 #2C3897 #972C6D
split-complementary
#978B2C #2C6D97 #552C97
monochromatic
#383410 #685F1E #978B2C #C6B63A #D4C86A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978B2C#FFFFFF#000000##000000
##978B2C1.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)
#98871E
Deuteranopia (green-blind)
#9C8C32
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b2c;
/* rgb */ color: rgb(151, 139, 44);
/* oklch */ color: oklch(63.0% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#b9ac6b',
    500: '#978b2c',
    950: '#000000',
  },
}
SCSS
$custom: #978b2c;
$custom-light: #b9ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2c",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 53.271,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.62952,
    "c": 0.11402,
    "h": 102
  },
  "luminance": 0.25226
}

Semantic roles & 50–950 ramp

primary
#978B2C
secondary
#656EBA
accent
#5ADE4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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