#978138#978138

#978138 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.9% C 0.096 H 92.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#978138
RGBrgb(151, 129, 56)
HSLhsl(46, 46%, 41%)
HSVhsv(46, 63%, 59%)
CMYKcmyk(0%, 14.6%, 62.9%, 40.8%)
CIE-LABlab(54.62, -0.57, 41.75)
CIE-LCHlch(54.62, 41.75, 90.79°)
OKLaboklab(60.87% -0.0043 0.0961)
OKLCHoklch(60.87% 0.096 92.5)
XYZxyz(21.3275, 22.5665, 6.9730)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978138 #384E97
analogous
#975138 #978138 #7D9738
triadic
#978138 #389781 #813897
tetradic
#978138 #389751 #384E97 #97387D
square
#978138 #389751 #384E97 #97387D
split-complementary
#978138 #387D97 #513897
monochromatic
#3E3517 #6A5B27 #978138 #BEA44F #CEBB7B

Accessibility & contrast

On white

3.81
#978138 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#978138 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978138
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978138#FFFFFF#000000##000000
##9781381.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F30
Deuteranopia (green-blind)
#93853B
Tritanopia (blue-blind)
#A37771
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978138;
/* rgb */ color: rgb(151, 129, 56);
/* oklch */ color: oklch(60.9% 0.096 92.5);
Tailwind
colors: {
  custom: {
    50: '#b8a572',
    500: '#978138',
    950: '#000000',
  },
}
SCSS
$custom: #978138;
$custom-light: #b8a572;
$custom-dark: #000000;
JSON
{
  "hex": "#978138",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 56
  },
  "hsl": {
    "h": 46.105,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.60868,
    "c": 0.09615,
    "h": 92.5
  },
  "luminance": 0.22565
}

Semantic roles & 50–950 ramp

primary
#978138
secondary
#7383B7
accent
#71D652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #978138

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

Preview Lab → · Contrast checker → · Palette generator →

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