#978F2E#978F2E

#978F2E is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.116 H 104.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#978F2E
RGBrgb(151, 143, 46)
HSLhsl(55, 53%, 39%)
HSVhsv(55, 70%, 59%)
CMYKcmyk(0%, 5.3%, 69.5%, 40.8%)
CIE-LABlab(58.44, -8.91, 50.30)
CIE-LCHlch(58.44, 51.08, 100.05°)
OKLaboklab(63.86% -0.0293 0.1126)
OKLCHoklch(63.86% 0.116 104.6)
XYZxyz(23.0790, 26.4224, 6.4686)
Luminance0.2642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2E #2E3697
analogous
#975A2E #978F2E #6A972E
triadic
#978F2E #2E978F #8F2E97
tetradic
#978F2E #2E975A #2E3697 #972E6A
square
#978F2E #2E975A #2E3697 #972E6A
split-complementary
#978F2E #2E6A97 #5A2E97
monochromatic
#393611 #686320 #978F2E #C4BA3E #D2CB6D

Accessibility & contrast

On white

3.34
#978F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#978F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F2E
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F2E#FFFFFF#000000##000000
##978F2E1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A20
Deuteranopia (green-blind)
#9E8F34
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2e;
/* rgb */ color: rgb(151, 143, 46);
/* oklch */ color: oklch(63.9% 0.116 104.6);
Tailwind
colors: {
  custom: {
    50: '#b9af6d',
    500: '#978f2e',
    950: '#000000',
  },
}
SCSS
$custom: #978f2e;
$custom-light: #b9af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2e",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 55.429,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63863,
    "c": 0.11633,
    "h": 104.6
  },
  "luminance": 0.26421
}

Semantic roles & 50–950 ramp

primary
#978F2E
secondary
#676DBA
accent
#56DD4B
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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