#978D2E#978D2E

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

Color values

HEX#978D2E
RGBrgb(151, 141, 46)
HSLhsl(54, 53%, 39%)
HSVhsv(54, 70%, 59%)
CMYKcmyk(0%, 6.6%, 69.5%, 40.8%)
CIE-LABlab(57.87, -7.83, 49.73)
CIE-LCHlch(57.87, 50.34, 98.95°)
OKLaboklab(63.42% -0.0262 0.1114)
OKLCHoklch(63.42% 0.114 103.3)
XYZxyz(22.7815, 25.8272, 6.3694)
Luminance0.2583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2E #2E3897
analogous
#97582E #978D2E #6C972E
triadic
#978D2E #2E978D #8D2E97
tetradic
#978D2E #2E9758 #2E3897 #972E6C
square
#978D2E #2E9758 #2E3897 #972E6C
split-complementary
#978D2E #2E6C97 #582E97
monochromatic
#393511 #686120 #978D2E #C4B73E #D2C96D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978D2E#FFFFFF#000000##000000
##978D2E1.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)
#9A8820
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#A2837A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2e;
/* rgb */ color: rgb(151, 141, 46);
/* oklch */ color: oklch(63.4% 0.114 103.3);
Tailwind
colors: {
  custom: {
    50: '#b9ae6d',
    500: '#978d2e',
    950: '#000000',
  },
}
SCSS
$custom: #978d2e;
$custom-light: #b9ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2e",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 54.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63415,
    "c": 0.11442,
    "h": 103.3
  },
  "luminance": 0.25826
}

Semantic roles & 50–950 ramp

primary
#978D2E
secondary
#676FBA
accent
#59DD4B
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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