#978A2F#978A2F

#978A2F is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.111 H 101.1°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#978A2F
RGBrgb(151, 138, 47)
HSLhsl(53, 53%, 39%)
HSVhsv(53, 69%, 59%)
CMYKcmyk(0%, 8.6%, 68.9%, 40.8%)
CIE-LABlab(57.04, -6.14, 48.46)
CIE-LCHlch(57.04, 48.84, 97.22°)
OKLaboklab(62.76% -0.0213 0.1089)
OKLCHoklch(62.76% 0.111 101.1)
XYZxyz(22.3650, 24.9625, 6.3290)
Luminance0.2496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A2F #2F3C97
analogous
#97562F #978A2F #70972F
triadic
#978A2F #2F978A #8A2F97
tetradic
#978A2F #2F9756 #2F3C97 #972F70
square
#978A2F #2F9756 #2F3C97 #972F70
split-complementary
#978A2F #2F7097 #562F97
monochromatic
#3A3512 #685F20 #978A2F #C3B340 #D2C66E

Accessibility & contrast

On white

3.50
#978A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#978A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A2F
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A2F#FFFFFF#000000##000000
##978A2F1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978623
Deuteranopia (green-blind)
#9B8B34
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a2f;
/* rgb */ color: rgb(151, 138, 47);
/* oklch */ color: oklch(62.8% 0.111 101.1);
Tailwind
colors: {
  custom: {
    50: '#b9ab6d',
    500: '#978a2f',
    950: '#000000',
  },
}
SCSS
$custom: #978a2f;
$custom-light: #b9ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978a2f",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 52.5,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.62755,
    "c": 0.11093,
    "h": 101.1
  },
  "luminance": 0.24962
}

Semantic roles & 50–950 ramp

primary
#978A2F
secondary
#6873B9
accent
#5EDC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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