#978837#978837

#978837 is a light, moderate yellow. Relative luminance 0.245; OKLCH L 62.4% C 0.103 H 98.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#978837
RGBrgb(151, 136, 55)
HSLhsl(51, 47%, 40%)
HSVhsv(51, 64%, 59%)
CMYKcmyk(0%, 9.9%, 63.6%, 40.8%)
CIE-LABlab(56.55, -4.53, 44.35)
CIE-LCHlch(56.55, 44.58, 95.83°)
OKLaboklab(62.39% -0.0158 0.1015)
OKLCHoklch(62.39% 0.103 98.8)
XYZxyz(22.2572, 24.4644, 7.1634)
Luminance0.2446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978837 #374697
analogous
#975837 #978837 #769737
triadic
#978837 #379788 #883797
tetradic
#978837 #379758 #374697 #973776
square
#978837 #379758 #374697 #973776
split-complementary
#978837 #377697 #583797
monochromatic
#3D3716 #6A6027 #978837 #BEAC4D #CFC17A

Accessibility & contrast

On white

3.56
#978837 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#978837 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978837
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978837#FFFFFF#000000##000000
##9788371.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95852E
Deuteranopia (green-blind)
#998A3B
Tritanopia (blue-blind)
#A27F77
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #978837;
/* rgb */ color: rgb(151, 136, 55);
/* oklch */ color: oklch(62.4% 0.103 98.8);
Tailwind
colors: {
  custom: {
    50: '#b8aa71',
    500: '#978837',
    950: '#000000',
  },
}
SCSS
$custom: #978837;
$custom-light: #b8aa71;
$custom-dark: #000000;
JSON
{
  "hex": "#978837",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 55
  },
  "hsl": {
    "h": 50.625,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6239,
    "c": 0.10268,
    "h": 98.8
  },
  "luminance": 0.24463
}

Semantic roles & 50–950 ramp

primary
#978837
secondary
#727DB8
accent
#66D652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #978837

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

Preview Lab → · Contrast checker → · Palette generator →

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