#978B1C#978B1C

#978B1C is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.8% C 0.124 H 102.8°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B1C
RGBrgb(151, 139, 28)
HSLhsl(54, 69%, 35%)
HSVhsv(54, 81%, 59%)
CMYKcmyk(0%, 7.9%, 81.5%, 40.8%)
CIE-LABlab(57.20, -7.57, 55.66)
CIE-LCHlch(57.20, 56.17, 97.75°)
OKLaboklab(62.85% -0.0273 0.1205)
OKLCHoklch(62.85% 0.124 102.8)
XYZxyz(22.2058, 25.1294, 4.7792)
Luminance0.2513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1C #1C2897
analogous
#974D1C #978B1C #66971C
triadic
#978B1C #1C978B #8B1C97
tetradic
#978B1C #1C974D #1C2897 #971C66
square
#978B1C #1C974D #1C2897 #971C66
split-complementary
#978B1C #1C6697 #4D1C97
monochromatic
#302C09 #635B12 #978B1C #CBBB26 #DED04F

Accessibility & contrast

On white

3.49
#978B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B1C
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B1C#FFFFFF#000000##000000
##978B1C1.003.496.036.03
#FFFFFF3.491.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9C8C25
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1c;
/* rgb */ color: rgb(151, 139, 28);
/* oklch */ color: oklch(62.8% 0.124 102.8);
Tailwind
colors: {
  custom: {
    50: '#b9ac63',
    500: '#978b1c',
    950: '#000000',
  },
}
SCSS
$custom: #978b1c;
$custom-light: #b9ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1c",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 54.146,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62847,
    "c": 0.12355,
    "h": 102.8
  },
  "luminance": 0.25128
}

Semantic roles & 50–950 ramp

primary
#978B1C
secondary
#4E59C1
accent
#4DEC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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