#978226#978226

#978226 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.9% C 0.111 H 95.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#978226
RGBrgb(151, 130, 38)
HSLhsl(49, 60%, 37%)
HSVhsv(49, 75%, 59%)
CMYKcmyk(0%, 13.9%, 74.8%, 40.8%)
CIE-LABlab(54.75, -2.21, 49.88)
CIE-LCHlch(54.75, 49.93, 92.54°)
OKLaboklab(60.92% -0.0112 0.1102)
OKLCHoklch(60.92% 0.111 95.8)
XYZxyz(21.0961, 22.6857, 5.1009)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978226 #263B97
analogous
#974A26 #978226 #739726
triadic
#978226 #269782 #822697
tetradic
#978226 #26974A #263B97 #972673
square
#978226 #26974A #263B97 #972673
split-complementary
#978226 #267397 #4A2697
monochromatic
#352E0D #66581A #978226 #C8AC32 #D7C160

Accessibility & contrast

On white

3.79
#978226 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#978226 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978226
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978226#FFFFFF#000000##000000
##9782261.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F17
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978226;
/* rgb */ color: rgb(151, 130, 38);
/* oklch */ color: oklch(60.9% 0.111 95.8);
Tailwind
colors: {
  custom: {
    50: '#b9a667',
    500: '#978226',
    950: '#000000',
  },
}
SCSS
$custom: #978226;
$custom-light: #b9a667;
$custom-dark: #000000;
JSON
{
  "hex": "#978226",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 38
  },
  "hsl": {
    "h": 48.85,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60918,
    "c": 0.11075,
    "h": 95.8
  },
  "luminance": 0.22685
}

Semantic roles & 50–950 ramp

primary
#978226
secondary
#5C6EBC
accent
#62E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978226

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

Preview Lab → · Contrast checker → · Palette generator →

#978226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva