#978D26#978D26

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

Color values

HEX#978D26
RGBrgb(151, 141, 38)
HSLhsl(55, 60%, 37%)
HSVhsv(55, 75%, 59%)
CMYKcmyk(0%, 6.6%, 74.8%, 40.8%)
CIE-LABlab(57.82, -8.25, 52.83)
CIE-LCHlch(57.82, 53.47, 98.87°)
OKLaboklab(63.35% -0.0283 0.1164)
OKLCHoklch(63.35% 0.12 103.7)
XYZxyz(22.6382, 25.7699, 5.6150)
Luminance0.2577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D26 #263097
analogous
#975426 #978D26 #699726
triadic
#978D26 #26978D #8D2697
tetradic
#978D26 #269754 #263097 #972669
square
#978D26 #269754 #263097 #972669
split-complementary
#978D26 #266997 #542697
monochromatic
#35320D #665F1A #978D26 #C8BB32 #D7CD60

Accessibility & contrast

On white

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

On black

6.15
#978D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D26
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D26#FFFFFF#000000##000000
##978D261.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8813
Deuteranopia (green-blind)
#9D8D2D
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d26;
/* rgb */ color: rgb(151, 141, 38);
/* oklch */ color: oklch(63.4% 0.120 103.7);
Tailwind
colors: {
  custom: {
    50: '#b9ae68',
    500: '#978d26',
    950: '#000000',
  },
}
SCSS
$custom: #978d26;
$custom-light: #b9ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#978d26",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 54.69,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63354,
    "c": 0.11983,
    "h": 103.7
  },
  "luminance": 0.25769
}

Semantic roles & 50–950 ramp

primary
#978D26
secondary
#5C65BC
accent
#53E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D26

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

Preview Lab → · Contrast checker → · Palette generator →

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