#978F1B#978F1B

#978F1B is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.7% C 0.128 H 105.3°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#978F1B
RGBrgb(151, 143, 27)
HSLhsl(56, 70%, 35%)
HSVhsv(56, 82%, 59%)
CMYKcmyk(0%, 5.3%, 82.1%, 40.8%)
CIE-LABlab(58.32, -9.77, 56.94)
CIE-LCHlch(58.32, 57.77, 99.73°)
OKLaboklab(63.74% -0.0336 0.1231)
OKLCHoklch(63.74% 0.128 105.3)
XYZxyz(22.7838, 26.3043, 4.9138)
Luminance0.2630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1B #1B2397
analogous
#97511B #978F1B #61971B
triadic
#978F1B #1B978F #8F1B97
tetradic
#978F1B #1B9751 #1B2397 #971B61
square
#978F1B #1B9751 #1B2397 #971B61
split-complementary
#978F1B #1B6197 #511B97
monochromatic
#2F2D08 #635E12 #978F1B #CBC024 #DFD64D

Accessibility & contrast

On white

3.35
#978F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#978F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F1B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F1B#FFFFFF#000000##000000
##978F1B1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#9F8E25
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f1b;
/* rgb */ color: rgb(151, 143, 27);
/* oklch */ color: oklch(63.7% 0.128 105.3);
Tailwind
colors: {
  custom: {
    50: '#b9af64',
    500: '#978f1b',
    950: '#000000',
  },
}
SCSS
$custom: #978f1b;
$custom-light: #b9af64;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1b",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 56.129,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63739,
    "c": 0.12754,
    "h": 105.3
  },
  "luminance": 0.26303
}

Semantic roles & 50–950 ramp

primary
#978F1B
secondary
#4C54C1
accent
#47EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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