#978B1B#978B1B

#978B1B is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.8% C 0.124 H 102.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#978B1B
RGBrgb(151, 139, 27)
HSLhsl(54, 70%, 35%)
HSVhsv(54, 82%, 59%)
CMYKcmyk(0%, 7.9%, 82.1%, 40.8%)
CIE-LABlab(57.20, -7.61, 55.96)
CIE-LCHlch(57.20, 56.47, 97.74°)
OKLaboklab(62.84% -0.0275 0.1209)
OKLCHoklch(62.84% 0.124 102.8)
XYZxyz(22.1940, 25.1247, 4.7172)
Luminance0.2512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1B #1B2797
analogous
#974D1B #978B1B #65971B
triadic
#978B1B #1B978B #8B1B97
tetradic
#978B1B #1B974D #1B2797 #971B65
square
#978B1B #1B974D #1B2797 #971B65
split-complementary
#978B1B #1B6597 #4D1B97
monochromatic
#2F2B08 #635B12 #978B1B #CBBB24 #DFD14D

Accessibility & contrast

On white

3.49
#978B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#978B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B1B
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B1B#FFFFFF#000000##000000
##978B1B1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9C8C24
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1b;
/* rgb */ color: rgb(151, 139, 27);
/* oklch */ color: oklch(62.8% 0.124 102.8);
Tailwind
colors: {
  custom: {
    50: '#b9ac63',
    500: '#978b1b',
    950: '#000000',
  },
}
SCSS
$custom: #978b1b;
$custom-light: #b9ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1b",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 54.194,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62841,
    "c": 0.12402,
    "h": 102.8
  },
  "luminance": 0.25124
}

Semantic roles & 50–950 ramp

primary
#978B1B
secondary
#4C58C1
accent
#4CEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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