#978038#978038

#978038 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.095 H 91.6°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#978038
RGBrgb(151, 128, 56)
HSLhsl(45, 46%, 41%)
HSVhsv(45, 63%, 59%)
CMYKcmyk(0%, 15.2%, 62.9%, 40.8%)
CIE-LABlab(54.35, -0.01, 41.44)
CIE-LCHlch(54.35, 41.44, 90.02°)
OKLaboklab(60.65% -0.0026 0.0954)
OKLCHoklch(60.65% 0.095 91.6)
XYZxyz(21.1965, 22.3043, 6.9293)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978038 #384F97
analogous
#975038 #978038 #7E9738
triadic
#978038 #389780 #803897
tetradic
#978038 #389750 #384F97 #97387E
square
#978038 #389750 #384F97 #97387E
split-complementary
#978038 #387E97 #503897
monochromatic
#3E3417 #6A5A27 #978038 #BEA34F #CEBA7B

Accessibility & contrast

On white

3.85
#978038 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#978038 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978038
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978038#FFFFFF#000000##000000
##9780381.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E30
Deuteranopia (green-blind)
#93853B
Tritanopia (blue-blind)
#A37670
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978038;
/* rgb */ color: rgb(151, 128, 56);
/* oklch */ color: oklch(60.7% 0.095 91.6);
Tailwind
colors: {
  custom: {
    50: '#b8a471',
    500: '#978038',
    950: '#000000',
  },
}
SCSS
$custom: #978038;
$custom-light: #b8a471;
$custom-dark: #000000;
JSON
{
  "hex": "#978038",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 56
  },
  "hsl": {
    "h": 45.474,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.60652,
    "c": 0.09545,
    "h": 91.6
  },
  "luminance": 0.22303
}

Semantic roles & 50–950 ramp

primary
#978038
secondary
#7384B7
accent
#72D652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F08
muted
#817F7B

Preview Lab

Preview with #978038

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

Preview Lab → · Contrast checker → · Palette generator →

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