#978022#978022

#978022 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.112 H 94.6°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#978022
RGBrgb(151, 128, 34)
HSLhsl(48, 63%, 36%)
HSVhsv(48, 77%, 59%)
CMYKcmyk(0%, 15.2%, 77.5%, 40.8%)
CIE-LABlab(54.17, -1.28, 50.87)
CIE-LCHlch(54.17, 50.88, 91.44°)
OKLaboklab(60.45% -0.009 0.1115)
OKLCHoklch(60.45% 0.112 94.6)
XYZxyz(20.7715, 22.1343, 4.6913)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978022 #223997
analogous
#974622 #978022 #749722
triadic
#978022 #229780 #802297
tetradic
#978022 #229746 #223997 #972274
square
#978022 #229746 #223997 #972274
split-complementary
#978022 #227497 #462297
monochromatic
#332B0C #655617 #978022 #C9AA2D #DAC15A

Accessibility & contrast

On white

3.87
#978022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#978022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978022
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978022#FFFFFF#000000##000000
##9780221.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #978022;
/* rgb */ color: rgb(151, 128, 34);
/* oklch */ color: oklch(60.5% 0.112 94.6);
Tailwind
colors: {
  custom: {
    50: '#b9a465',
    500: '#978022',
    950: '#000000',
  },
}
SCSS
$custom: #978022;
$custom-light: #b9a465;
$custom-dark: #000000;
JSON
{
  "hex": "#978022",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 48.205,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60453,
    "c": 0.11182,
    "h": 94.6
  },
  "luminance": 0.22133
}

Semantic roles & 50–950 ramp

primary
#978022
secondary
#576BBE
accent
#62E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978022

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

Preview Lab → · Contrast checker → · Palette generator →

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