#978F2D#978F2D

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

Color values

HEX#978F2D
RGBrgb(151, 143, 45)
HSLhsl(55, 54%, 38%)
HSVhsv(55, 70%, 59%)
CMYKcmyk(0%, 5.3%, 70.2%, 40.8%)
CIE-LABlab(58.43, -8.97, 50.70)
CIE-LCHlch(58.43, 51.49, 100.03°)
OKLaboklab(63.86% -0.0296 0.1133)
OKLCHoklch(63.86% 0.117 104.6)
XYZxyz(23.0595, 26.4146, 6.3660)
Luminance0.2641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2D #2D3597
analogous
#975A2D #978F2D #6A972D
triadic
#978F2D #2D978F #8F2D97
tetradic
#978F2D #2D975A #2D3597 #972D6A
square
#978F2D #2D975A #2D3597 #972D6A
split-complementary
#978F2D #2D6A97 #5A2D97
monochromatic
#393611 #68621F #978F2D #C5BB3C #D3CB6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978F2D#FFFFFF#000000##000000
##978F2D1.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)
#9C8A1E
Deuteranopia (green-blind)
#9E8F33
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2d;
/* rgb */ color: rgb(151, 143, 45);
/* oklch */ color: oklch(63.9% 0.117 104.6);
Tailwind
colors: {
  custom: {
    50: '#b9af6c',
    500: '#978f2d',
    950: '#000000',
  },
}
SCSS
$custom: #978f2d;
$custom-light: #b9af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2d",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 55.472,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63855,
    "c": 0.11704,
    "h": 104.6
  },
  "luminance": 0.26414
}

Semantic roles & 50–950 ramp

primary
#978F2D
secondary
#666CBA
accent
#55DD4A
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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