#978A3F#978A3F

#978A3F is a light, moderate yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.097 H 99.6°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#978A3F
RGBrgb(151, 138, 63)
HSLhsl(51, 41%, 42%)
HSVhsv(51, 58%, 59%)
CMYKcmyk(0%, 8.6%, 58.3%, 40.8%)
CIE-LABlab(57.19, -5.03, 41.21)
CIE-LCHlch(57.19, 41.52, 96.95°)
OKLaboklab(62.92% -0.0162 0.0958)
OKLCHoklch(62.92% 0.097 99.6)
XYZxyz(22.7490, 25.1161, 8.3512)
Luminance0.2511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A3F #3F4C97
analogous
#975E3F #978A3F #78973F
triadic
#978A3F #3F978A #8A3F97
tetradic
#978A3F #3F975E #3F4C97 #973F78
square
#978A3F #3F975E #3F4C97 #973F78
split-complementary
#978A3F #3F7897 #5E3F97
monochromatic
#413B1B #6C632D #978A3F #BAAC59 #CCC185

Accessibility & contrast

On white

3.49
#978A3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#978A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A3F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A3F#FFFFFF#000000##000000
##978A3F1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968637
Deuteranopia (green-blind)
#9A8B43
Tritanopia (blue-blind)
#A28179
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a3f;
/* rgb */ color: rgb(151, 138, 63);
/* oklch */ color: oklch(62.9% 0.097 99.6);
Tailwind
colors: {
  custom: {
    50: '#b8ab77',
    500: '#978a3f',
    950: '#000000',
  },
}
SCSS
$custom: #978a3f;
$custom-light: #b8ab77;
$custom-dark: #000000;
JSON
{
  "hex": "#978a3f",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 51.136,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.62922,
    "c": 0.0972,
    "h": 99.6
  },
  "luminance": 0.25115
}

Semantic roles & 50–950 ramp

primary
#978A3F
secondary
#7C84B6
accent
#69D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #978A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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