#978B2E#978B2E

#978B2E is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.113 H 101.9°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#978B2E
RGBrgb(151, 139, 46)
HSLhsl(53, 53%, 39%)
HSVhsv(53, 70%, 59%)
CMYKcmyk(0%, 7.9%, 69.5%, 40.8%)
CIE-LABlab(57.31, -6.74, 49.16)
CIE-LCHlch(57.31, 49.62, 97.81°)
OKLaboklab(62.97% -0.0232 0.1102)
OKLCHoklch(62.97% 0.113 101.9)
XYZxyz(22.4892, 25.2428, 6.2720)
Luminance0.2524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2E #2E3A97
analogous
#97562E #978B2E #6E972E
triadic
#978B2E #2E978B #8B2E97
tetradic
#978B2E #2E9756 #2E3A97 #972E6E
square
#978B2E #2E9756 #2E3A97 #972E6E
split-complementary
#978B2E #2E6E97 #562E97
monochromatic
#393511 #686020 #978B2E #C4B53E #D2C76D

Accessibility & contrast

On white

3.47
#978B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#978B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B2E
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B2E#FFFFFF#000000##000000
##978B2E1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988721
Deuteranopia (green-blind)
#9B8C34
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b2e;
/* rgb */ color: rgb(151, 139, 46);
/* oklch */ color: oklch(63.0% 0.113 101.9);
Tailwind
colors: {
  custom: {
    50: '#b9ac6c',
    500: '#978b2e',
    950: '#000000',
  },
}
SCSS
$custom: #978b2e;
$custom-light: #b9ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2e",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 53.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.62969,
    "c": 0.11258,
    "h": 101.9
  },
  "luminance": 0.25242
}

Semantic roles & 50–950 ramp

primary
#978B2E
secondary
#6771BA
accent
#5CDD4B
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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