#978C2F#978C2F

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

Color values

HEX#978C2F
RGBrgb(151, 140, 47)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 69%, 59%)
CMYKcmyk(0%, 7.3%, 68.9%, 40.8%)
CIE-LABlab(57.60, -7.23, 49.03)
CIE-LCHlch(57.60, 49.56, 98.39°)
OKLaboklab(63.2% -0.0244 0.1101)
OKLCHoklch(63.2% 0.113 102.5)
XYZxyz(22.6546, 25.5416, 6.4255)
Luminance0.2554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C2F #2F3A97
analogous
#97582F #978C2F #6E972F
triadic
#978C2F #2F978C #8C2F97
tetradic
#978C2F #2F9758 #2F3A97 #972F6E
square
#978C2F #2F9758 #2F3A97 #972F6E
split-complementary
#978C2F #2F6E97 #582F97
monochromatic
#3A3512 #686120 #978C2F #C3B640 #D2C76E

Accessibility & contrast

On white

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

On black

6.11
#978C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C2F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C2F#FFFFFF#000000##000000
##978C2F1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998822
Deuteranopia (green-blind)
#9C8D35
Tritanopia (blue-blind)
#A28279
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c2f;
/* rgb */ color: rgb(151, 140, 47);
/* oklch */ color: oklch(63.2% 0.113 102.5);
Tailwind
colors: {
  custom: {
    50: '#b9ad6d',
    500: '#978c2f',
    950: '#000000',
  },
}
SCSS
$custom: #978c2f;
$custom-light: #b9ad6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978c2f",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 53.654,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.632,
    "c": 0.11276,
    "h": 102.5
  },
  "luminance": 0.25541
}

Semantic roles & 50–950 ramp

primary
#978C2F
secondary
#6871B9
accent
#5BDC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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