#978F2C#978F2C

#978F2C is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.118 H 104.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#978F2C
RGBrgb(151, 143, 44)
HSLhsl(56, 55%, 38%)
HSVhsv(56, 71%, 59%)
CMYKcmyk(0%, 5.3%, 70.9%, 40.8%)
CIE-LABlab(58.42, -9.02, 51.10)
CIE-LCHlch(58.42, 51.89, 100.01°)
OKLaboklab(63.85% -0.0298 0.1139)
OKLCHoklch(63.85% 0.118 104.7)
XYZxyz(23.0405, 26.4070, 6.2658)
Luminance0.2641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2C #2C3497
analogous
#97592C #978F2C #69972C
triadic
#978F2C #2C978F #8F2C97
tetradic
#978F2C #2C9759 #2C3497 #972C69
square
#978F2C #2C9759 #2C3497 #972C69
split-complementary
#978F2C #2C6997 #592C97
monochromatic
#383510 #68621E #978F2C #C6BB3A #D4CC6A

Accessibility & contrast

On white

3.34
#978F2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#978F2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F2C
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F2C#FFFFFF#000000##000000
##978F2C1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1D
Deuteranopia (green-blind)
#9F8F33
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2c;
/* rgb */ color: rgb(151, 143, 44);
/* oklch */ color: oklch(63.8% 0.118 104.7);
Tailwind
colors: {
  custom: {
    50: '#b9af6c',
    500: '#978f2c',
    950: '#000000',
  },
}
SCSS
$custom: #978f2c;
$custom-light: #b9af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2c",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 55.514,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63847,
    "c": 0.11775,
    "h": 104.7
  },
  "luminance": 0.26406
}

Semantic roles & 50–950 ramp

primary
#978F2C
secondary
#656BBA
accent
#55DE4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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