#978A1B#978A1B

#978A1B is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.6% C 0.123 H 102.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#978A1B
RGBrgb(151, 138, 27)
HSLhsl(54, 70%, 35%)
HSVhsv(54, 82%, 59%)
CMYKcmyk(0%, 8.6%, 82.1%, 40.8%)
CIE-LABlab(56.92, -7.06, 55.71)
CIE-LCHlch(56.92, 56.16, 97.23°)
OKLaboklab(62.62% -0.026 0.1204)
OKLCHoklch(62.62% 0.123 102.2)
XYZxyz(22.0499, 24.8364, 4.6692)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A1B #1B2897
analogous
#974C1B #978A1B #66971B
triadic
#978A1B #1B978A #8A1B97
tetradic
#978A1B #1B974C #1B2897 #971B66
square
#978A1B #1B974C #1B2897 #971B66
split-complementary
#978A1B #1B6697 #4C1B97
monochromatic
#2F2B08 #635B12 #978A1B #CBB924 #DFD04D

Accessibility & contrast

On white

3.52
#978A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#978A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A1B
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A1B#FFFFFF#000000##000000
##978A1B1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#9B8B24
Tritanopia (blue-blind)
#A37F76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a1b;
/* rgb */ color: rgb(151, 138, 27);
/* oklch */ color: oklch(62.6% 0.123 102.2);
Tailwind
colors: {
  custom: {
    50: '#b9ab63',
    500: '#978a1b',
    950: '#000000',
  },
}
SCSS
$custom: #978a1b;
$custom-light: #b9ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#978a1b",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 53.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62618,
    "c": 0.12317,
    "h": 102.2
  },
  "luminance": 0.24835
}

Semantic roles & 50–950 ramp

primary
#978A1B
secondary
#4C59C1
accent
#4EEC3B
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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