#978D2B#978D2B

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

Color values

HEX#978D2B
RGBrgb(151, 141, 43)
HSLhsl(54, 56%, 38%)
HSVhsv(54, 72%, 59%)
CMYKcmyk(0%, 6.6%, 71.5%, 40.8%)
CIE-LABlab(57.85, -7.99, 50.93)
CIE-LCHlch(57.85, 51.56, 98.92°)
OKLaboklab(63.39% -0.027 0.1134)
OKLCHoklch(63.39% 0.117 103.4)
XYZxyz(22.7244, 25.8044, 6.0688)
Luminance0.2580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2B #2B3597
analogous
#97572B #978D2B #6B972B
triadic
#978D2B #2B978D #8D2B97
tetradic
#978D2B #2B9757 #2B3597 #972B6B
square
#978D2B #2B9757 #2B3597 #972B6B
split-complementary
#978D2B #2B6B97 #572B97
monochromatic
#383410 #67611D #978D2B #C7B939 #D4CA68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978D2B#FFFFFF#000000##000000
##978D2B1.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)
#9A881C
Deuteranopia (green-blind)
#9D8D31
Tritanopia (blue-blind)
#A3837A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2b;
/* rgb */ color: rgb(151, 141, 43);
/* oklch */ color: oklch(63.4% 0.117 103.4);
Tailwind
colors: {
  custom: {
    50: '#b9ae6b',
    500: '#978d2b',
    950: '#000000',
  },
}
SCSS
$custom: #978d2b;
$custom-light: #b9ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2b",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 54.444,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63391,
    "c": 0.11655,
    "h": 103.4
  },
  "luminance": 0.25803
}

Semantic roles & 50–950 ramp

primary
#978D2B
secondary
#636BBB
accent
#57DF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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