#978B1E#978B1E

#978B1E is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.123 H 102.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B1E
RGBrgb(151, 139, 30)
HSLhsl(54, 67%, 35%)
HSVhsv(54, 80%, 59%)
CMYKcmyk(0%, 7.9%, 80.1%, 40.8%)
CIE-LABlab(57.21, -7.50, 55.04)
CIE-LCHlch(57.21, 55.55, 97.76°)
OKLaboklab(62.86% -0.0269 0.1196)
OKLCHoklch(62.86% 0.123 102.7)
XYZxyz(22.2305, 25.1393, 4.9094)
Luminance0.2514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1E #1E2A97
analogous
#974F1E #978B1E #66971E
triadic
#978B1E #1E978B #8B1E97
tetradic
#978B1E #1E974F #1E2A97 #971E66
square
#978B1E #1E974F #1E2A97 #971E66
split-complementary
#978B1E #1E6697 #4F1E97
monochromatic
#312D0A #645C14 #978B1E #CABA28 #DDCF53

Accessibility & contrast

On white

3.48
#978B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B1E
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B1E#FFFFFF#000000##000000
##978B1E1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9C8C27
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1e;
/* rgb */ color: rgb(151, 139, 30);
/* oklch */ color: oklch(62.9% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#b9ac64',
    500: '#978b1e',
    950: '#000000',
  },
}
SCSS
$custom: #978b1e;
$custom-light: #b9ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1e",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 54.05,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62857,
    "c": 0.12256,
    "h": 102.7
  },
  "luminance": 0.25138
}

Semantic roles & 50–950 ramp

primary
#978B1E
secondary
#515CC0
accent
#4FEA3E
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1E

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

Preview Lab → · Contrast checker → · Palette generator →

#978B1E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva