#978128#978128

#978128 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.109 H 94.8°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#978128
RGBrgb(151, 129, 40)
HSLhsl(48, 58%, 37%)
HSVhsv(48, 74%, 59%)
CMYKcmyk(0%, 14.6%, 73.5%, 40.8%)
CIE-LABlab(54.48, -1.56, 48.82)
CIE-LCHlch(54.48, 48.84, 91.83°)
OKLaboklab(60.72% -0.0091 0.1083)
OKLCHoklch(60.72% 0.109 94.8)
XYZxyz(20.9968, 22.4342, 5.2314)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978128 #283E97
analogous
#974928 #978128 #769728
triadic
#978128 #289781 #812897
tetradic
#978128 #289749 #283E97 #972876
square
#978128 #289749 #283E97 #972876
split-complementary
#978128 #287697 #492897
monochromatic
#362E0E #67581B #978128 #C7AA35 #D6BF64

Accessibility & contrast

On white

3.83
#978128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#978128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978128
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978128#FFFFFF#000000##000000
##9781281.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1A
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#A3776F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978128;
/* rgb */ color: rgb(151, 129, 40);
/* oklch */ color: oklch(60.7% 0.109 94.8);
Tailwind
colors: {
  custom: {
    50: '#b9a568',
    500: '#978128',
    950: '#000000',
  },
}
SCSS
$custom: #978128;
$custom-light: #b9a568;
$custom-dark: #000000;
JSON
{
  "hex": "#978128",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 48.108,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60715,
    "c": 0.10871,
    "h": 94.8
  },
  "luminance": 0.22433
}

Semantic roles & 50–950 ramp

primary
#978128
secondary
#5F72BC
accent
#65E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978128

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

Preview Lab → · Contrast checker → · Palette generator →

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