#978538#978538

#978538 is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.7% C 0.099 H 96.2°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#978538
RGBrgb(151, 133, 56)
HSLhsl(49, 46%, 41%)
HSVhsv(49, 63%, 59%)
CMYKcmyk(0%, 11.9%, 62.9%, 40.8%)
CIE-LABlab(55.73, -2.80, 42.97)
CIE-LCHlch(55.73, 43.06, 93.73°)
OKLaboklab(61.74% -0.0107 0.0987)
OKLCHoklch(61.74% 0.099 96.2)
XYZxyz(21.8648, 23.6409, 7.1521)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978538 #384A97
analogous
#975638 #978538 #799738
triadic
#978538 #389785 #853897
tetradic
#978538 #389756 #384A97 #973879
square
#978538 #389756 #384A97 #973879
split-complementary
#978538 #387997 #563897
monochromatic
#3E3617 #6A5E27 #978538 #BEA94F #CEBE7B

Accessibility & contrast

On white

3.67
#978538 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#978538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978538
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978538#FFFFFF#000000##000000
##9785381.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928230
Deuteranopia (green-blind)
#96883C
Tritanopia (blue-blind)
#A27C74
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #978538;
/* rgb */ color: rgb(151, 133, 56);
/* oklch */ color: oklch(61.7% 0.099 96.2);
Tailwind
colors: {
  custom: {
    50: '#b8a872',
    500: '#978538',
    950: '#000000',
  },
}
SCSS
$custom: #978538;
$custom-light: #b8a872;
$custom-dark: #000000;
JSON
{
  "hex": "#978538",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 56
  },
  "hsl": {
    "h": 48.632,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61741,
    "c": 0.09925,
    "h": 96.2
  },
  "luminance": 0.2364
}

Semantic roles & 50–950 ramp

primary
#978538
secondary
#7380B7
accent
#6BD652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #978538

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

Preview Lab → · Contrast checker → · Palette generator →

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