#978D1B#978D1B

#978D1B is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.126 H 104.1°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#978D1B
RGBrgb(151, 141, 27)
HSLhsl(55, 70%, 35%)
HSVhsv(55, 82%, 59%)
CMYKcmyk(0%, 6.6%, 82.1%, 40.8%)
CIE-LABlab(57.76, -8.69, 56.45)
CIE-LCHlch(57.76, 57.11, 98.75°)
OKLaboklab(63.29% -0.0305 0.122)
OKLCHoklch(63.29% 0.126 104.1)
XYZxyz(22.4862, 25.7091, 4.8146)
Luminance0.2571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D1B #1B2597
analogous
#974F1B #978D1B #63971B
triadic
#978D1B #1B978D #8D1B97
tetradic
#978D1B #1B974F #1B2597 #971B63
square
#978D1B #1B974F #1B2597 #971B63
split-complementary
#978D1B #1B6397 #4F1B97
monochromatic
#2F2C08 #635D12 #978D1B #CBBD24 #DFD34D

Accessibility & contrast

On white

3.42
#978D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#978D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D1B
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D1B#FFFFFF#000000##000000
##978D1B1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9E8D25
Tritanopia (blue-blind)
#A38378
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d1b;
/* rgb */ color: rgb(151, 141, 27);
/* oklch */ color: oklch(63.3% 0.126 104.1);
Tailwind
colors: {
  custom: {
    50: '#b9ae63',
    500: '#978d1b',
    950: '#000000',
  },
}
SCSS
$custom: #978d1b;
$custom-light: #b9ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#978d1b",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 55.161,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6329,
    "c": 0.12575,
    "h": 104.1
  },
  "luminance": 0.25708
}

Semantic roles & 50–950 ramp

primary
#978D1B
secondary
#4C56C1
accent
#4AEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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