#978238#978238

#978238 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.1% C 0.097 H 93.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#978238
RGBrgb(151, 130, 56)
HSLhsl(47, 46%, 41%)
HSVhsv(47, 63%, 59%)
CMYKcmyk(0%, 13.9%, 62.9%, 40.8%)
CIE-LABlab(54.90, -1.13, 42.05)
CIE-LCHlch(54.90, 42.07, 91.54°)
OKLaboklab(61.09% -0.0059 0.0967)
OKLCHoklch(61.09% 0.097 93.5)
XYZxyz(21.4599, 22.8312, 7.0171)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978238 #384D97
analogous
#975238 #978238 #7C9738
triadic
#978238 #389782 #823897
tetradic
#978238 #389752 #384D97 #97387C
square
#978238 #389752 #384D97 #97387C
split-complementary
#978238 #387C97 #523897
monochromatic
#3E3517 #6A5C27 #978238 #BEA54F #CEBC7B

Accessibility & contrast

On white

3.77
#978238 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#978238 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978238
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978238#FFFFFF#000000##000000
##9782381.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8030
Deuteranopia (green-blind)
#94863B
Tritanopia (blue-blind)
#A37872
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978238;
/* rgb */ color: rgb(151, 130, 56);
/* oklch */ color: oklch(61.1% 0.097 93.5);
Tailwind
colors: {
  custom: {
    50: '#b8a672',
    500: '#978238',
    950: '#000000',
  },
}
SCSS
$custom: #978238;
$custom-light: #b8a672;
$custom-dark: #000000;
JSON
{
  "hex": "#978238",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 56
  },
  "hsl": {
    "h": 46.737,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61086,
    "c": 0.0969,
    "h": 93.5
  },
  "luminance": 0.2283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978238

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

Preview Lab → · Contrast checker → · Palette generator →

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