#978B26#978B26

#978B26 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.118 H 102.3°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#978B26
RGBrgb(151, 139, 38)
HSLhsl(54, 60%, 37%)
HSVhsv(54, 75%, 59%)
CMYKcmyk(0%, 7.9%, 74.8%, 40.8%)
CIE-LABlab(57.26, -7.16, 52.29)
CIE-LCHlch(57.26, 52.78, 97.80°)
OKLaboklab(62.91% -0.0252 0.1153)
OKLCHoklch(62.91% 0.118 102.3)
XYZxyz(22.3460, 25.1855, 5.5176)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B26 #263297
analogous
#975226 #978B26 #6B9726
triadic
#978B26 #26978B #8B2697
tetradic
#978B26 #269752 #263297 #97266B
square
#978B26 #269752 #263297 #97266B
split-complementary
#978B26 #266B97 #522697
monochromatic
#35310D #665E1A #978B26 #C8B832 #D7CA60

Accessibility & contrast

On white

3.48
#978B26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#978B26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B26
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B26#FFFFFF#000000##000000
##978B261.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988714
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b26;
/* rgb */ color: rgb(151, 139, 38);
/* oklch */ color: oklch(62.9% 0.118 102.3);
Tailwind
colors: {
  custom: {
    50: '#b9ac68',
    500: '#978b26',
    950: '#000000',
  },
}
SCSS
$custom: #978b26;
$custom-light: #b9ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#978b26",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 38
  },
  "hsl": {
    "h": 53.628,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62907,
    "c": 0.11803,
    "h": 102.3
  },
  "luminance": 0.25184
}

Semantic roles & 50–950 ramp

primary
#978B26
secondary
#5C67BC
accent
#56E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B26

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

Preview Lab → · Contrast checker → · Palette generator →

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