#978A25#978A25

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

Color values

HEX#978A25
RGBrgb(151, 138, 37)
HSLhsl(53, 61%, 37%)
HSVhsv(53, 75%, 59%)
CMYKcmyk(0%, 8.6%, 75.5%, 40.8%)
CIE-LABlab(56.97, -6.66, 52.39)
CIE-LCHlch(56.97, 52.81, 97.25°)
OKLaboklab(62.68% -0.0239 0.1153)
OKLCHoklch(62.68% 0.118 101.7)
XYZxyz(22.1859, 24.8908, 5.3857)
Luminance0.2489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A25 #253297
analogous
#975125 #978A25 #6B9725
triadic
#978A25 #25978A #8A2597
tetradic
#978A25 #259751 #253297 #97256B
square
#978A25 #259751 #253297 #97256B
split-complementary
#978A25 #256B97 #512597
monochromatic
#35300D #665D19 #978A25 #C8B731 #D8CA5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978A25#FFFFFF#000000##000000
##978A251.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)
#978612
Deuteranopia (green-blind)
#9B8B2C
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a25;
/* rgb */ color: rgb(151, 138, 37);
/* oklch */ color: oklch(62.7% 0.118 101.7);
Tailwind
colors: {
  custom: {
    50: '#b9ab67',
    500: '#978a25',
    950: '#000000',
  },
}
SCSS
$custom: #978a25;
$custom-light: #b9ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#978a25",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 53.158,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62677,
    "c": 0.11777,
    "h": 101.7
  },
  "luminance": 0.2489
}

Semantic roles & 50–950 ramp

primary
#978A25
secondary
#5B66BD
accent
#56E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A25

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

Preview Lab → · Contrast checker → · Palette generator →

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