#978826#978826

#978826 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.2% C 0.115 H 100.3°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#978826
RGBrgb(151, 136, 38)
HSLhsl(52, 60%, 37%)
HSVhsv(52, 75%, 59%)
CMYKcmyk(0%, 9.9%, 74.8%, 40.8%)
CIE-LABlab(56.42, -5.52, 51.49)
CIE-LCHlch(56.42, 51.78, 96.12°)
OKLaboklab(62.24% -0.0206 0.1136)
OKLCHoklch(62.24% 0.115 100.3)
XYZxyz(21.9175, 24.3286, 5.3748)
Luminance0.2433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978826 #263597
analogous
#974F26 #978826 #6E9726
triadic
#978826 #269788 #882697
tetradic
#978826 #26974F #263597 #97266E
square
#978826 #26974F #263597 #97266E
split-complementary
#978826 #266E97 #4F2697
monochromatic
#35300D #665C1A #978826 #C8B432 #D7C760

Accessibility & contrast

On white

3.58
#978826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#978826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978826
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978826#FFFFFF#000000##000000
##9788261.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958415
Deuteranopia (green-blind)
#9A8A2C
Tritanopia (blue-blind)
#A37E75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978826;
/* rgb */ color: rgb(151, 136, 38);
/* oklch */ color: oklch(62.2% 0.115 100.3);
Tailwind
colors: {
  custom: {
    50: '#b9aa68',
    500: '#978826',
    950: '#000000',
  },
}
SCSS
$custom: #978826;
$custom-light: #b9aa68;
$custom-dark: #000000;
JSON
{
  "hex": "#978826",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 38
  },
  "hsl": {
    "h": 52.035,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6224,
    "c": 0.11544,
    "h": 100.3
  },
  "luminance": 0.24328
}

Semantic roles & 50–950 ramp

primary
#978826
secondary
#5C69BC
accent
#5AE345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978826

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

Preview Lab → · Contrast checker → · Palette generator →

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