#978438#978438

#978438 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.5% C 0.098 H 95.3°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#978438
RGBrgb(151, 132, 56)
HSLhsl(48, 46%, 41%)
HSVhsv(48, 63%, 59%)
CMYKcmyk(0%, 12.6%, 62.9%, 40.8%)
CIE-LABlab(55.45, -2.25, 42.66)
CIE-LCHlch(55.45, 42.72, 93.01°)
OKLaboklab(61.52% -0.0091 0.098)
OKLCHoklch(61.52% 0.098 95.3)
XYZxyz(21.7285, 23.3684, 7.1067)
Luminance0.2337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978438 #384B97
analogous
#975438 #978438 #7A9738
triadic
#978438 #389784 #843897
tetradic
#978438 #389754 #384B97 #97387A
square
#978438 #389754 #384B97 #97387A
split-complementary
#978438 #387A97 #543897
monochromatic
#3E3617 #6A5D27 #978438 #BEA74F #CEBE7B

Accessibility & contrast

On white

3.70
#978438 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#978438 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978438
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978438#FFFFFF#000000##000000
##9784381.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918130
Deuteranopia (green-blind)
#96873C
Tritanopia (blue-blind)
#A27B73
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #978438;
/* rgb */ color: rgb(151, 132, 56);
/* oklch */ color: oklch(61.5% 0.098 95.3);
Tailwind
colors: {
  custom: {
    50: '#b8a772',
    500: '#978438',
    950: '#000000',
  },
}
SCSS
$custom: #978438;
$custom-light: #b8a772;
$custom-dark: #000000;
JSON
{
  "hex": "#978438",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 56
  },
  "hsl": {
    "h": 48,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61522,
    "c": 0.09844,
    "h": 95.3
  },
  "luminance": 0.23367
}

Semantic roles & 50–950 ramp

primary
#978438
secondary
#7381B7
accent
#6DD652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #978438

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

Preview Lab → · Contrast checker → · Palette generator →

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