#978C26#978C26

#978C26 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.119 H 103.0°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#978C26
RGBrgb(151, 140, 38)
HSLhsl(54, 60%, 37%)
HSVhsv(54, 75%, 59%)
CMYKcmyk(0%, 7.3%, 74.8%, 40.8%)
CIE-LABlab(57.54, -7.70, 52.56)
CIE-LCHlch(57.54, 53.12, 98.34°)
OKLaboklab(63.13% -0.0267 0.1159)
OKLCHoklch(63.13% 0.119 103)
XYZxyz(22.4914, 25.4764, 5.5661)
Luminance0.2547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C26 #263197
analogous
#975326 #978C26 #6A9726
triadic
#978C26 #26978C #8C2697
tetradic
#978C26 #269753 #263197 #97266A
square
#978C26 #269753 #263197 #97266A
split-complementary
#978C26 #266A97 #532697
monochromatic
#35310D #665F1A #978C26 #C8B932 #D7CC60

Accessibility & contrast

On white

3.45
#978C26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#978C26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C26
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C26#FFFFFF#000000##000000
##978C261.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998713
Deuteranopia (green-blind)
#9D8C2D
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c26;
/* rgb */ color: rgb(151, 140, 38);
/* oklch */ color: oklch(63.1% 0.119 103.0);
Tailwind
colors: {
  custom: {
    50: '#b9ad68',
    500: '#978c26',
    950: '#000000',
  },
}
SCSS
$custom: #978c26;
$custom-light: #b9ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#978c26",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 38
  },
  "hsl": {
    "h": 54.159,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6313,
    "c": 0.11892,
    "h": 103
  },
  "luminance": 0.25475
}

Semantic roles & 50–950 ramp

primary
#978C26
secondary
#5C66BC
accent
#54E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C26

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

Preview Lab → · Contrast checker → · Palette generator →

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