#978522#978522

#978522 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.5% C 0.115 H 98.4°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#978522
RGBrgb(151, 133, 34)
HSLhsl(51, 63%, 36%)
HSVhsv(51, 77%, 59%)
CMYKcmyk(0%, 11.9%, 77.5%, 40.8%)
CIE-LABlab(55.55, -4.06, 52.16)
CIE-LCHlch(55.55, 52.32, 94.45°)
OKLaboklab(61.55% -0.0168 0.1142)
OKLCHoklch(61.55% 0.115 98.4)
XYZxyz(21.4398, 23.4710, 4.9141)
Luminance0.2347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978522 #223497
analogous
#974B22 #978522 #6F9722
triadic
#978522 #229785 #852297
tetradic
#978522 #22974B #223497 #97226F
square
#978522 #22974B #223497 #97226F
split-complementary
#978522 #226F97 #4B2297
monochromatic
#332D0C #655917 #978522 #C9B12D #DAC65A

Accessibility & contrast

On white

3.69
#978522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#978522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978522
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978522#FFFFFF#000000##000000
##9785221.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820E
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#A37B72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #978522;
/* rgb */ color: rgb(151, 133, 34);
/* oklch */ color: oklch(61.5% 0.115 98.4);
Tailwind
colors: {
  custom: {
    50: '#b9a865',
    500: '#978522',
    950: '#000000',
  },
}
SCSS
$custom: #978522;
$custom-light: #b9a865;
$custom-dark: #000000;
JSON
{
  "hex": "#978522",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 50.769,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61549,
    "c": 0.11546,
    "h": 98.4
  },
  "luminance": 0.2347
}

Semantic roles & 50–950 ramp

primary
#978522
secondary
#5767BE
accent
#5BE642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978522

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

Preview Lab → · Contrast checker → · Palette generator →

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