#978A26#978A26

#978A26 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.117 H 101.7°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A26
RGBrgb(151, 138, 38)
HSLhsl(53, 60%, 37%)
HSVhsv(53, 75%, 59%)
CMYKcmyk(0%, 8.6%, 74.8%, 40.8%)
CIE-LABlab(56.98, -6.62, 52.02)
CIE-LCHlch(56.98, 52.44, 97.25°)
OKLaboklab(62.68% -0.0237 0.1147)
OKLCHoklch(62.68% 0.117 101.7)
XYZxyz(22.2018, 24.8972, 5.4695)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A26 #263397
analogous
#975126 #978A26 #6C9726
triadic
#978A26 #26978A #8A2697
tetradic
#978A26 #269751 #263397 #97266C
square
#978A26 #269751 #263397 #97266C
split-complementary
#978A26 #266C97 #512697
monochromatic
#35310D #665D1A #978A26 #C8B732 #D7C960

Accessibility & contrast

On white

3.51
#978A26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A26
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A26#FFFFFF#000000##000000
##978A261.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978614
Deuteranopia (green-blind)
#9B8B2D
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a26;
/* rgb */ color: rgb(151, 138, 38);
/* oklch */ color: oklch(62.7% 0.117 101.7);
Tailwind
colors: {
  custom: {
    50: '#b9ab68',
    500: '#978a26',
    950: '#000000',
  },
}
SCSS
$custom: #978a26;
$custom-light: #b9ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#978a26",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 53.097,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62684,
    "c": 0.11715,
    "h": 101.7
  },
  "luminance": 0.24896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978A26

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

Preview Lab → · Contrast checker → · Palette generator →

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