#978C1B#978C1B

#978C1B is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.125 H 103.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#978C1B
RGBrgb(151, 140, 27)
HSLhsl(55, 70%, 35%)
HSVhsv(55, 82%, 59%)
CMYKcmyk(0%, 7.3%, 82.1%, 40.8%)
CIE-LABlab(57.48, -8.15, 56.20)
CIE-LCHlch(57.48, 56.79, 98.25°)
OKLaboklab(63.07% -0.029 0.1215)
OKLCHoklch(63.07% 0.125 103.4)
XYZxyz(22.3395, 25.4156, 4.7657)
Luminance0.2541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C1B #1B2697
analogous
#974E1B #978C1B #64971B
triadic
#978C1B #1B978C #8C1B97
tetradic
#978C1B #1B974E #1B2697 #971B64
square
#978C1B #1B974E #1B2697 #971B64
split-complementary
#978C1B #1B6497 #4E1B97
monochromatic
#2F2C08 #635C12 #978C1B #CBBC24 #DFD24D

Accessibility & contrast

On white

3.45
#978C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#978C1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C1B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C1B#FFFFFF#000000##000000
##978C1B1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9D8C25
Tritanopia (blue-blind)
#A38277
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c1b;
/* rgb */ color: rgb(151, 140, 27);
/* oklch */ color: oklch(63.1% 0.125 103.4);
Tailwind
colors: {
  custom: {
    50: '#b9ad63',
    500: '#978c1b',
    950: '#000000',
  },
}
SCSS
$custom: #978c1b;
$custom-light: #b9ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#978c1b",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 54.677,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63065,
    "c": 0.12488,
    "h": 103.4
  },
  "luminance": 0.25415
}

Semantic roles & 50–950 ramp

primary
#978C1B
secondary
#4C57C1
accent
#4BEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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