#978A24#978A24

#978A24 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.118 H 101.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A24
RGBrgb(151, 138, 36)
HSLhsl(53, 61%, 37%)
HSVhsv(53, 76%, 59%)
CMYKcmyk(0%, 8.6%, 76.2%, 40.8%)
CIE-LABlab(56.96, -6.71, 52.75)
CIE-LCHlch(56.96, 53.18, 97.25°)
OKLaboklab(62.67% -0.0241 0.1159)
OKLCHoklch(62.67% 0.118 101.8)
XYZxyz(22.1704, 24.8846, 5.3041)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A24 #243197
analogous
#975124 #978A24 #6B9724
triadic
#978A24 #24978A #8A2497
tetradic
#978A24 #249751 #243197 #97246B
square
#978A24 #249751 #243197 #97246B
split-complementary
#978A24 #246B97 #512497
monochromatic
#34300C #665D18 #978A24 #C8B730 #D8CA5D

Accessibility & contrast

On white

3.51
#978A24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A24
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A24#FFFFFF#000000##000000
##978A241.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978610
Deuteranopia (green-blind)
#9B8B2B
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a24;
/* rgb */ color: rgb(151, 138, 36);
/* oklch */ color: oklch(62.7% 0.118 101.8);
Tailwind
colors: {
  custom: {
    50: '#b9ab67',
    500: '#978a24',
    950: '#000000',
  },
}
SCSS
$custom: #978a24;
$custom-light: #b9ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#978a24",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 53.217,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62671,
    "c": 0.11838,
    "h": 101.8
  },
  "luminance": 0.24884
}

Semantic roles & 50–950 ramp

primary
#978A24
secondary
#5A65BD
accent
#55E543
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A24

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

Preview Lab → · Contrast checker → · Palette generator →

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