#978B24#978B24

#978B24 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.119 H 102.4°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B24
RGBrgb(151, 139, 36)
HSLhsl(54, 61%, 37%)
HSVhsv(54, 76%, 59%)
CMYKcmyk(0%, 7.9%, 76.2%, 40.8%)
CIE-LABlab(57.24, -7.25, 53.02)
CIE-LCHlch(57.24, 53.51, 97.79°)
OKLaboklab(62.89% -0.0257 0.1165)
OKLCHoklch(62.89% 0.119 102.4)
XYZxyz(22.3146, 25.1729, 5.3522)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B24 #243097
analogous
#975224 #978B24 #6A9724
triadic
#978B24 #24978B #8B2497
tetradic
#978B24 #249752 #243097 #97246A
square
#978B24 #249752 #243097 #97246A
split-complementary
#978B24 #246A97 #522497
monochromatic
#34300C #665E18 #978B24 #C8B830 #D8CC5D

Accessibility & contrast

On white

3.48
#978B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##978B24#FFFFFF#000000##000000
##978B241.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860F
Deuteranopia (green-blind)
#9C8C2B
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b24;
/* rgb */ color: rgb(151, 139, 36);
/* oklch */ color: oklch(62.9% 0.119 102.4);
Tailwind
colors: {
  custom: {
    50: '#b9ac67',
    500: '#978b24',
    950: '#000000',
  },
}
SCSS
$custom: #978b24;
$custom-light: #b9ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#978b24",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 36
  },
  "hsl": {
    "h": 53.739,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62894,
    "c": 0.11925,
    "h": 102.4
  },
  "luminance": 0.25172
}

Semantic roles & 50–950 ramp

primary
#978B24
secondary
#5A64BD
accent
#54E543
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B24

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

Preview Lab → · Contrast checker → · Palette generator →

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