#978C2B#978C2B

#978C2B is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.116 H 102.7°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#978C2B
RGBrgb(151, 140, 43)
HSLhsl(54, 56%, 38%)
HSVhsv(54, 72%, 59%)
CMYKcmyk(0%, 7.3%, 71.5%, 40.8%)
CIE-LABlab(57.57, -7.45, 50.65)
CIE-LCHlch(57.57, 51.20, 98.37°)
OKLaboklab(63.17% -0.0255 0.1128)
OKLCHoklch(63.17% 0.116 102.7)
XYZxyz(22.5776, 25.5108, 6.0199)
Luminance0.2551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C2B #2B3697
analogous
#97562B #978C2B #6C972B
triadic
#978C2B #2B978C #8C2B97
tetradic
#978C2B #2B9756 #2B3697 #972B6C
square
#978C2B #2B9756 #2B3697 #972B6C
split-complementary
#978C2B #2B6C97 #562B97
monochromatic
#383410 #67601D #978C2B #C7B839 #D4C968

Accessibility & contrast

On white

3.44
#978C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#978C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C2B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C2B#FFFFFF#000000##000000
##978C2B1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871C
Deuteranopia (green-blind)
#9C8C31
Tritanopia (blue-blind)
#A38279
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c2b;
/* rgb */ color: rgb(151, 140, 43);
/* oklch */ color: oklch(63.2% 0.116 102.7);
Tailwind
colors: {
  custom: {
    50: '#b9ad6b',
    500: '#978c2b',
    950: '#000000',
  },
}
SCSS
$custom: #978c2b;
$custom-light: #b9ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978c2b",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 53.889,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63167,
    "c": 0.11563,
    "h": 102.7
  },
  "luminance": 0.2551
}

Semantic roles & 50–950 ramp

primary
#978C2B
secondary
#636CBB
accent
#58DF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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