#978A1C#978A1C

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

Color values

HEX#978A1C
RGBrgb(151, 138, 28)
HSLhsl(54, 69%, 35%)
HSVhsv(54, 81%, 59%)
CMYKcmyk(0%, 8.6%, 81.5%, 40.8%)
CIE-LABlab(56.92, -7.03, 55.41)
CIE-LCHlch(56.92, 55.86, 97.23°)
OKLaboklab(62.62% -0.0258 0.12)
OKLCHoklch(62.62% 0.123 102.1)
XYZxyz(22.0616, 24.8411, 4.7311)
Luminance0.2484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A1C #1C2997
analogous
#974D1C #978A1C #66971C
triadic
#978A1C #1C978A #8A1C97
tetradic
#978A1C #1C974D #1C2997 #971C66
square
#978A1C #1C974D #1C2997 #971C66
split-complementary
#978A1C #1C6697 #4D1C97
monochromatic
#302C09 #635B12 #978A1C #CBB926 #DECF4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978A1C#FFFFFF#000000##000000
##978A1C1.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)
#9B8B25
Tritanopia (blue-blind)
#A37F76
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a1c;
/* rgb */ color: rgb(151, 138, 28);
/* oklch */ color: oklch(62.6% 0.123 102.1);
Tailwind
colors: {
  custom: {
    50: '#b9ab63',
    500: '#978a1c',
    950: '#000000',
  },
}
SCSS
$custom: #978a1c;
$custom-light: #b9ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#978a1c",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 53.659,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62623,
    "c": 0.12269,
    "h": 102.1
  },
  "luminance": 0.2484
}

Semantic roles & 50–950 ramp

primary
#978A1C
secondary
#4E5AC1
accent
#4FEC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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