#978338#978338

#978338 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.3% C 0.098 H 94.4°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#978338
RGBrgb(151, 131, 56)
HSLhsl(47, 46%, 41%)
HSVhsv(47, 63%, 59%)
CMYKcmyk(0%, 13.2%, 62.9%, 40.8%)
CIE-LABlab(55.17, -1.69, 42.36)
CIE-LCHlch(55.17, 42.39, 92.28°)
OKLaboklab(61.3% -0.0075 0.0974)
OKLCHoklch(61.3% 0.098 94.4)
XYZxyz(21.5936, 23.0985, 7.0617)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978338 #384C97
analogous
#975338 #978338 #7C9738
triadic
#978338 #389783 #833897
tetradic
#978338 #389753 #384C97 #97387C
square
#978338 #389753 #384C97 #97387C
split-complementary
#978338 #387C97 #533897
monochromatic
#3E3617 #6A5C27 #978338 #BEA64F #CEBD7B

Accessibility & contrast

On white

3.74
#978338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#978338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978338
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978338#FFFFFF#000000##000000
##9783381.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908130
Deuteranopia (green-blind)
#95873B
Tritanopia (blue-blind)
#A37973
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978338;
/* rgb */ color: rgb(151, 131, 56);
/* oklch */ color: oklch(61.3% 0.098 94.4);
Tailwind
colors: {
  custom: {
    50: '#b8a672',
    500: '#978338',
    950: '#000000',
  },
}
SCSS
$custom: #978338;
$custom-light: #b8a672;
$custom-dark: #000000;
JSON
{
  "hex": "#978338",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 47.368,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61303,
    "c": 0.09766,
    "h": 94.4
  },
  "luminance": 0.23097
}

Semantic roles & 50–950 ramp

primary
#978338
secondary
#7382B7
accent
#6ED652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #978338

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

Preview Lab → · Contrast checker → · Palette generator →

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