#978726#978726

#978726 is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.115 H 99.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#978726
RGBrgb(151, 135, 38)
HSLhsl(52, 60%, 37%)
HSVhsv(52, 75%, 59%)
CMYKcmyk(0%, 10.6%, 74.8%, 40.8%)
CIE-LABlab(56.14, -4.97, 51.22)
CIE-LCHlch(56.14, 51.46, 95.55°)
OKLaboklab(62.02% -0.019 0.113)
OKLCHoklch(62.02% 0.115 99.6)
XYZxyz(21.7774, 24.0482, 5.3280)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978726 #263697
analogous
#974E26 #978726 #6F9726
triadic
#978726 #269787 #872697
tetradic
#978726 #26974E #263697 #97266F
square
#978726 #26974E #263697 #97266F
split-complementary
#978726 #266F97 #4E2697
monochromatic
#35300D #665B1A #978726 #C8B332 #D7C660

Accessibility & contrast

On white

3.61
#978726 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#978726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978726
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978726#FFFFFF#000000##000000
##9787261.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948315
Deuteranopia (green-blind)
#99892C
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978726;
/* rgb */ color: rgb(151, 135, 38);
/* oklch */ color: oklch(62.0% 0.115 99.6);
Tailwind
colors: {
  custom: {
    50: '#b9a968',
    500: '#978726',
    950: '#000000',
  },
}
SCSS
$custom: #978726;
$custom-light: #b9a968;
$custom-dark: #000000;
JSON
{
  "hex": "#978726",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 51.504,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62018,
    "c": 0.11462,
    "h": 99.6
  },
  "luminance": 0.24047
}

Semantic roles & 50–950 ramp

primary
#978726
secondary
#5C6ABC
accent
#5BE345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978726

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

Preview Lab → · Contrast checker → · Palette generator →

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