#978627#978627

#978627 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.8% C 0.113 H 98.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#978627
RGBrgb(151, 134, 39)
HSLhsl(51, 59%, 37%)
HSVhsv(51, 74%, 59%)
CMYKcmyk(0%, 11.3%, 74.2%, 40.8%)
CIE-LABlab(55.86, -4.38, 50.57)
CIE-LCHlch(55.86, 50.76, 94.95°)
OKLaboklab(61.81% -0.0172 0.1118)
OKLCHoklch(61.81% 0.113 98.8)
XYZxyz(21.6549, 23.7771, 5.3679)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978627 #273897
analogous
#974E27 #978627 #709727
triadic
#978627 #279786 #862797
tetradic
#978627 #27974E #273897 #972770
square
#978627 #27974E #273897 #972770
split-complementary
#978627 #277097 #4E2797
monochromatic
#36300E #665B1A #978627 #C8B134 #D6C562

Accessibility & contrast

On white

3.65
#978627 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#978627 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978627
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978627#FFFFFF#000000##000000
##9786271.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#98882D
Tritanopia (blue-blind)
#A37C73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #978627;
/* rgb */ color: rgb(151, 134, 39);
/* oklch */ color: oklch(61.8% 0.113 98.8);
Tailwind
colors: {
  custom: {
    50: '#b9a868',
    500: '#978627',
    950: '#000000',
  },
}
SCSS
$custom: #978627;
$custom-light: #b9a868;
$custom-dark: #000000;
JSON
{
  "hex": "#978627",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 39
  },
  "hsl": {
    "h": 50.893,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61805,
    "c": 0.11316,
    "h": 98.8
  },
  "luminance": 0.23776
}

Semantic roles & 50–950 ramp

primary
#978627
secondary
#5E6CBC
accent
#5DE246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978627

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

Preview Lab → · Contrast checker → · Palette generator →

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