#978D2F#978D2F

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

Color values

HEX#978D2F
RGBrgb(151, 141, 47)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 69%, 59%)
CMYKcmyk(0%, 6.6%, 68.9%, 40.8%)
CIE-LABlab(57.88, -7.77, 49.32)
CIE-LCHlch(57.88, 49.93, 98.95°)
OKLaboklab(63.42% -0.026 0.1107)
OKLCHoklch(63.42% 0.114 103.2)
XYZxyz(22.8014, 25.8352, 6.4744)
Luminance0.2583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2F #2F3997
analogous
#97592F #978D2F #6D972F
triadic
#978D2F #2F978D #8D2F97
tetradic
#978D2F #2F9759 #2F3997 #972F6D
square
#978D2F #2F9759 #2F3997 #972F6D
split-complementary
#978D2F #2F6D97 #592F97
monochromatic
#3A3612 #686120 #978D2F #C3B740 #D2C86E

Accessibility & contrast

On white

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

On black

6.17
#978D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D2F
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D2F#FFFFFF#000000##000000
##978D2F1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8822
Deuteranopia (green-blind)
#9D8D35
Tritanopia (blue-blind)
#A2837A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2f;
/* rgb */ color: rgb(151, 141, 47);
/* oklch */ color: oklch(63.4% 0.114 103.2);
Tailwind
colors: {
  custom: {
    50: '#b9ae6d',
    500: '#978d2f',
    950: '#000000',
  },
}
SCSS
$custom: #978d2f;
$custom-light: #b9ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2f",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 54.231,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63424,
    "c": 0.11368,
    "h": 103.2
  },
  "luminance": 0.25834
}

Semantic roles & 50–950 ramp

primary
#978D2F
secondary
#6870B9
accent
#5ADC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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