#978E1B#978E1B

#978E1B is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.127 H 104.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#978E1B
RGBrgb(151, 142, 27)
HSLhsl(56, 70%, 35%)
HSVhsv(56, 82%, 59%)
CMYKcmyk(0%, 6%, 82.1%, 40.8%)
CIE-LABlab(58.04, -9.23, 56.69)
CIE-LCHlch(58.04, 57.44, 99.25°)
OKLaboklab(63.51% -0.032 0.1225)
OKLCHoklch(63.51% 0.127 104.7)
XYZxyz(22.6344, 26.0054, 4.8640)
Luminance0.2600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E1B #1B2497
analogous
#97501B #978E1B #62971B
triadic
#978E1B #1B978E #8E1B97
tetradic
#978E1B #1B9750 #1B2497 #971B62
square
#978E1B #1B9750 #1B2497 #971B62
split-complementary
#978E1B #1B6297 #501B97
monochromatic
#2F2C08 #635D12 #978E1B #CBBF24 #DFD54D

Accessibility & contrast

On white

3.39
#978E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#978E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E1B
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E1B#FFFFFF#000000##000000
##978E1B1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#9E8E25
Tritanopia (blue-blind)
#A38479
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978e1b;
/* rgb */ color: rgb(151, 142, 27);
/* oklch */ color: oklch(63.5% 0.127 104.7);
Tailwind
colors: {
  custom: {
    50: '#b9ae63',
    500: '#978e1b',
    950: '#000000',
  },
}
SCSS
$custom: #978e1b;
$custom-light: #b9ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#978e1b",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 55.645,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63514,
    "c": 0.12664,
    "h": 104.7
  },
  "luminance": 0.26004
}

Semantic roles & 50–950 ramp

primary
#978E1B
secondary
#4C55C1
accent
#48EC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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