#978C2D#978C2D

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

Color values

HEX#978C2D
RGBrgb(151, 140, 45)
HSLhsl(54, 54%, 38%)
HSVhsv(54, 70%, 59%)
CMYKcmyk(0%, 7.3%, 70.2%, 40.8%)
CIE-LABlab(57.58, -7.34, 49.85)
CIE-LCHlch(57.58, 50.39, 98.38°)
OKLaboklab(63.18% -0.025 0.1115)
OKLCHoklch(63.18% 0.114 102.6)
XYZxyz(22.6152, 25.5259, 6.2179)
Luminance0.2552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C2D #2D3897
analogous
#97572D #978C2D #6D972D
triadic
#978C2D #2D978C #8C2D97
tetradic
#978C2D #2D9757 #2D3897 #972D6D
square
#978C2D #2D9757 #2D3897 #972D6D
split-complementary
#978C2D #2D6D97 #572D97
monochromatic
#393511 #68601F #978C2D #C5B73C #D3C86B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978C2D#FFFFFF#000000##000000
##978C2D1.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)
#99881F
Deuteranopia (green-blind)
#9C8C33
Tritanopia (blue-blind)
#A28279
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c2d;
/* rgb */ color: rgb(151, 140, 45);
/* oklch */ color: oklch(63.2% 0.114 102.6);
Tailwind
colors: {
  custom: {
    50: '#b9ad6c',
    500: '#978c2d',
    950: '#000000',
  },
}
SCSS
$custom: #978c2d;
$custom-light: #b9ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978c2d",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 53.774,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63183,
    "c": 0.11422,
    "h": 102.6
  },
  "luminance": 0.25525
}

Semantic roles & 50–950 ramp

primary
#978C2D
secondary
#666FBA
accent
#5ADD4A
background
#FBFAF6
surface
#F7F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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