#978A1A#978A1A

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

Color values

HEX#978A1A
RGBrgb(151, 138, 26)
HSLhsl(54, 71%, 35%)
HSVhsv(54, 83%, 59%)
CMYKcmyk(0%, 8.6%, 82.8%, 40.8%)
CIE-LABlab(56.91, -7.10, 56.01)
CIE-LCHlch(56.91, 56.45, 97.22°)
OKLaboklab(62.61% -0.0262 0.1208)
OKLCHoklch(62.61% 0.124 102.2)
XYZxyz(22.0385, 24.8319, 4.6093)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A1A #1A2797
analogous
#974C1A #978A1A #66971A
triadic
#978A1A #1A978A #8A1A97
tetradic
#978A1A #1A974C #1A2797 #971A66
square
#978A1A #1A974C #1A2797 #971A66
split-complementary
#978A1A #1A6697 #4C1A97
monochromatic
#2F2B08 #635A11 #978A1A #CBBA23 #E0D14B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978A1A#FFFFFF#000000##000000
##978A1A1.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: #978a1a;
/* rgb */ color: rgb(151, 138, 26);
/* oklch */ color: oklch(62.6% 0.124 102.2);
Tailwind
colors: {
  custom: {
    50: '#baab62',
    500: '#978a1a',
    950: '#000000',
  },
}
SCSS
$custom: #978a1a;
$custom-light: #baab62;
$custom-dark: #000000;
JSON
{
  "hex": "#978a1a",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 53.76,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62613,
    "c": 0.12363,
    "h": 102.2
  },
  "luminance": 0.24831
}

Semantic roles & 50–950 ramp

primary
#978A1A
secondary
#4B57C2
accent
#4DED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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