#978F2B#978F2B

#978F2B 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#978F2B
RGBrgb(151, 143, 43)
HSLhsl(56, 56%, 38%)
HSVhsv(56, 72%, 59%)
CMYKcmyk(0%, 5.3%, 71.5%, 40.8%)
CIE-LABlab(58.41, -9.07, 51.49)
CIE-LCHlch(58.41, 52.28, 100.00°)
OKLaboklab(63.84% -0.0301 0.1146)
OKLCHoklch(63.84% 0.118 104.7)
XYZxyz(23.0219, 26.3995, 6.1680)
Luminance0.2640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2B #2B3397
analogous
#97592B #978F2B #69972B
triadic
#978F2B #2B978F #8F2B97
tetradic
#978F2B #2B9759 #2B3397 #972B69
square
#978F2B #2B9759 #2B3397 #972B69
split-complementary
#978F2B #2B6997 #592B97
monochromatic
#383510 #67621D #978F2B #C7BC39 #D4CC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978F2B#FFFFFF#000000##000000
##978F2B1.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)
#9C8A1B
Deuteranopia (green-blind)
#9F8E32
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2b;
/* rgb */ color: rgb(151, 143, 43);
/* oklch */ color: oklch(63.8% 0.118 104.7);
Tailwind
colors: {
  custom: {
    50: '#b9af6b',
    500: '#978f2b',
    950: '#000000',
  },
}
SCSS
$custom: #978f2b;
$custom-light: #b9af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2b",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 55.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63839,
    "c": 0.11844,
    "h": 104.7
  },
  "luminance": 0.26399
}

Semantic roles & 50–950 ramp

primary
#978F2B
secondary
#636ABB
accent
#54DF49
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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